Getting root SSH access - up to version 2.0.5

Post Reply
andreus
Posts: 134
Joined: Wed Dec 16, 2009 9:57 pm

Getting root SSH access - up to version 2.0.5

Post by andreus » Mon Oct 03, 2011 3:50 pm

Big thanks to Mijzelf for figuring this out on the Network Space 2 because it works for the 2big Network 2 as well!
STEP 1: Create a root symlink in a USB disk
- From Linux, open a terminal window
- Format an USB drive ext2/3
- Create the following symlink on it: "ln -s / theroot"
- Plug the USB drive to Lacie
STEP 2: Use AjaXplorer to access lacie root filesystem
- Go to Lacie Dashboard and browse your files
- Select the USB drive, and select the symlink folder "theroot"
STEP 3: Hack your Lacie


- Edit "/usr/lib/python2.6/site-packages/unicorn/authentication/local/user.py" and "/etc/shadow"
- Replace the "root" hashed password in the following line "root:$1$$1RDUuTsVHjre9juUvuICX.:12542:0:99999:7:::"
For "admin" hashed password, that you can see in "/etc/shadow" "admin:[YOUR_ADMIN_HASHED_PASSWORD]:12488:0:99999:7:::"
- Download "/etc/initng/runlevel/default.runlevel", edit the file and replace "#sshd" by "sshd"
- Reboot
- If everything went fine, now you can connect from any PC using root username and password. See the rest of the tutorials if you want to enhance your Lacie.
Notes:
- When editing, you'll have to use Linux/Unix line endings. If you're in Windows use PsPad
- Until firmware version 2.0.4 ssh port is 22, from firmware 2.0.5 is 2222
- If you use Windows, after the configuration, you can use PuTTY to SSH access your Lacie
- You can use WinSCP to SFTP access your Lacie to upload/download files
Source: http://lacie.nas-central.org/wiki/Categ ... sion_2.0.5

Tested in 2Big Network 2 version 2.0.5.

I think it doesn't work in version 2.0.6. so don't update to that version. If you are already in version 2.0.6, test it. If it doesn't work do a factory reset (see http://manuals.lacie.com/en/manuals/d2- ... to-factory).

If you are in version prior to 2.0.5, test it or upgrade to version 2.0.5 (http://manuals.lacie.com/en/manuals/d2- ... rk2/update | http://lacie.nas-central.org/wiki/Categ ... nformation | http://lacie.nas-central.org/wiki/Categ ... _2#Updates) and then try it.

UPDATE: Tested. It doesn't work with 2.0.6

Good luck
Last edited by andreus on Wed Oct 05, 2011 2:05 pm, edited 2 times in total.

Mijzelf
Posts: 6207
Joined: Mon Jun 16, 2008 10:45 am

Re: Getting root SSH access - up to version 2.0.5

Post by Mijzelf » Tue Oct 04, 2011 9:53 am

Why do you think it won't work in 2.0.6?

andreus
Posts: 134
Joined: Wed Dec 16, 2009 9:57 pm

Re: Getting root SSH access - up to version 2.0.5

Post by andreus » Tue Oct 04, 2011 11:36 am

Hi Mijzelf, because of the release notes. Never tested.
Release Notes
Version 2.0.6
Filebrowser security fix
Disk start robustness enhancements
Source: http://lacie.nas-central.org/wiki/Categ ... sion_2.0.6

I think that "Filebrowser security fix" is something to do with this.

UPDATE: Tested. It doesn't work with 2.0.6

Post Reply