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

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

Postby B___MAN » Sun Jan 20, 2019 3:19 pm

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!
B___MAN
 
Posts: 9
Joined: Fri Nov 02, 2012 12:35 pm

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

Postby Jocko » Sun Jan 20, 2019 3:58 pm

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
Jocko
Site Admin - expert
 
Posts: 11367
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

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

Postby Jocko » Sun Jan 20, 2019 4:09 pm

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)
Jocko
Site Admin - expert
 
Posts: 11367
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

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

Postby B___MAN » Sun Jan 20, 2019 7:38 pm

: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
B___MAN
 
Posts: 9
Joined: Fri Nov 02, 2012 12:35 pm

Previous

Return to Philips SPD8020

Who is online

Users browsing this forum: No registered users and 4 guests

cron