[SOLVED] After a firmware upgrade, blinking blue, lost 5Big2

Re: After a firmware upgrade, blinking blue and 5Big2 is los

Postby fvdw » Sun Jun 12, 2016 10:02 pm

fvdw wrote:wait a minute instead of the custom capsule you can edit the files on sdx8
Give me a minute to figure it out


Here you go

to enable ssh access and reset the password for user root to the same as the default password of the user admin (which you know) proceed as follow

Unpack the files in the zip archive attached and put the files in the tftp folder of the fvdw-sl console
Load and start the standalone kernel, assemble the sdx8 raid array and mount it (I assume you use /dev/md1 respectively /md1 as mount point

Replace existing files on sdx8 by the ones in the attached archive
Upload them using tftp command in standalone kernel, cd to the corresponding folder first to make you life easy

the file "default.runlevel" goes into folder
/md1/etc/initng/runlevel/
Code: Select all
cd /md1/etc/initng/runlevel
tftp -l default.runlevel -r default.runlevel -g ip-pc
cd /

replace ip-pc by actual ip address of your pc,
you can check before uploading the new file if in the folder were you are a file is present with same name using ls -al command, if it is not you are in the wrong folder

the file "shadow" goes into folder
/md1/etc
Code: Select all
cd /md1/etc
tftp -l shadow -r shadow -g ip-pc
cd /


the file "user.py" goes into folder
/md1/usr/lib/python2.6/site-packages/unicorn/authentication/local
Code: Select all
cd /md1/usr/lib/python2.6/site-packages/unicorn/authentication/local
tftp -l user.py -r user.py -g ip-pc
cd /

Changing this last file, user.py is only required to prevent that when you change a password of a user using the dashboard that the password for user root is reset to original value instead of the the default password for user admin
If you do not set user passwords there is no need to change this file.

PS if you overwrite the files they will keep the permission as set for the original files, this is important otherwise your nas won't boot. So do not rename the original files first. Just follow the instruction. We have plenty of copies of the original files

Reboot and you should be able to connect via ssh with user root and as password the default password of user admin
You do not have the required permissions to view the files attached to this post.
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: After a firmware upgrade, blinking blue and 5Big2 is los

Postby Glaven Clattuck » Mon Jun 13, 2016 6:40 pm

Hi when try to dl the file, thi is the response:
Code: Select all
The selected attachment does not exist anymore.


can you reup?

ok, thanks dl it.

i can try later, now about to start the Italy football match..... and I can not concentrate on my PC. :thumbup
Last edited by Glaven Clattuck on Mon Jun 13, 2016 6:48 pm, edited 1 time in total.
Glaven Clattuck
Donator VIP
Donator VIP
 
Posts: 153
Joined: Sat May 21, 2016 3:21 pm
Location: Urbe Immortalis

Re: After a firmware upgrade, blinking blue and 5Big2 is los

Postby fvdw » Mon Jun 13, 2016 6:45 pm

done, file is online again,
there is one thing you should realize installing these files opens a safety hole in your nas as the password of root will now always be "admin", thats easy to guess having shell access with root privileges has a risk, therefor I think you should install later another set of files with a dedicated root password.

Let me know if you want to go that route
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: After a firmware upgrade, blinking blue and 5Big2 is los

Postby Glaven Clattuck » Mon Jun 13, 2016 9:22 pm

fvdw wrote:done, file is online again,
there is one thing you should realize installing these files opens a safety hole in your nas as the password of root will now always be "admin", thats easy to guess having shell access with root privileges has a risk, therefor I think you should install later another set of files with a dedicated root password.

Let me know if you want to go that route


Ok,I did everything, but now the answer is this, obviously if I'm writing the ssh string correctly

Code: Select all
ssh root@10.211.55.22
root@10.211.55.22's password:
Permission denied, please try again.
Glaven Clattuck
Donator VIP
Donator VIP
 
Posts: 153
Joined: Sat May 21, 2016 3:21 pm
Location: Urbe Immortalis

Re: After a firmware upgrade, blinking blue and 5Big2 is los

Postby Jocko » Mon Jun 13, 2016 9:28 pm

Did you enter as password 'admin' ?

and what ssh port did you use? according with the hack it should be 2222
Until firmware version 2.0.4 ssh port is 22, from firmware 2.0.5 is 2222


So try this command
Code: Select all
ssh -p 2222 root@10.211.55.22
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: After a firmware upgrade, blinking blue and 5Big2 is los

Postby Glaven Clattuck » Mon Jun 13, 2016 9:31 pm

Jocko wrote:Did you enter as password 'admin' ?

and what ssh port did you use? according with the hack it should be 2222
Until firmware version 2.0.4 ssh port is 22, from firmware 2.0.5 is 2222


So try this command
Code: Select all
ssh -D 2222 root@10.211.55.22


Yes i try all this step.
Glaven Clattuck
Donator VIP
Donator VIP
 
Posts: 153
Joined: Sat May 21, 2016 3:21 pm
Location: Urbe Immortalis

Re: After a firmware upgrade, blinking blue and 5Big2 is los

Postby Jocko » Mon Jun 13, 2016 9:32 pm

I edited the command line flag 'p' instead of 'D'
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: After a firmware upgrade, blinking blue and 5Big2 is los

Postby Glaven Clattuck » Mon Jun 13, 2016 9:34 pm

Jocko wrote:I edited the command line flag 'p' instead of 'D'


Code: Select all
/ Domenico$ ssh -D 2222 root@10.211.55.22
root@10.211.55.22's password:
Permission denied, please try again.
Glaven Clattuck
Donator VIP
Donator VIP
 
Posts: 153
Joined: Sat May 21, 2016 3:21 pm
Location: Urbe Immortalis

Re: After a firmware upgrade, blinking blue and 5Big2 is los

Postby Jocko » Mon Jun 13, 2016 9:41 pm

Jocko wrote:I edited the command line flag 'p' instead of 'D'
So the right command is
Code: Select all
ssh -p 2222 root@10.211.55.22
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: After a firmware upgrade, blinking blue and 5Big2 is los

Postby fvdw » Mon Jun 13, 2016 9:45 pm

Mmm... upload the /etc/shadow file on sdx8 to the tftp folder of the fvdw-sl console and sent to me via pm.
When uploading to the console use behind the -r option a name like shadow.test to prevent overwriting if the one I sent you

By the way you should also be able to log in as user "admin" with password you use for the dashboard. But you will not have root privileges. But it can help to find out if you are using the right password.
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

PreviousNext

Return to Lacie 5big Network vs2

Who is online

Users browsing this forum: No registered users and 10 guests