Page 2 of 2

Re: Found my SPD8020... can't access it. :-(

PostPosted: Sun Jan 20, 2019 3:19 pm
by B___MAN
I solved the xtrem setting. :bananadance :applause

Now I get an error when running the script. I think something is going wrong when copying the script from the forum.

Code: Select all
root@NAS:/ # /usr/sbin/restore_adminpassword
Parse error: syntax error, unexpected '[' in /usr/sbin/restore_adminpassword on line 26
root@NAS:/ #


And line 26 is where the cursor is located.

[ img ]

Thanks again!

Re: Found my SPD8020... can't access it. :-(

PostPosted: Sun Jan 20, 2019 3:58 pm
by Jocko
Hi

It seems you put some additional break lines.
For example on the sed command which is a very idea. So please to remove them fully

Tested on my side, and sed command fails with these break lines but it is not your error which happens before :scratch

Re: Found my SPD8020... can't access it. :-(

PostPosted: Sun Jan 20, 2019 4:09 pm
by Jocko
Found!

On version 13.0, password_hash is not supported so replace the line
Code: Select all
password_hash('admin',PASSWORD_DEFAULT,['cost' => 7]);
by
Code: Select all
crypt('admin');

(and of course restore the sed command line as posted previously)

Re: Found my SPD8020... can't access it. :-(

PostPosted: Sun Jan 20, 2019 7:38 pm
by B___MAN
:woohoo It worked!! :woohoo

Thank you so much for your help, I really appreciate it!.
Now I'm going to try to upgrade it. :applause