General NAS-Central Forums

Welcome to the NAS community
It is currently Sun Nov 19, 2017 9:46 pm

All times are UTC




Post new topic Reply to topic  [ 20 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: Thu Nov 20, 2014 9:00 pm 
Offline

Joined: Fri Apr 11, 2014 9:46 pm
Posts: 3
FWIW, I upgraded to 3.1.5.2 today and did steps 8-11 again and I was back in action. I use public key auth with my public key in /root/.ssh/authorized_keys, so 12-13 weren't necessary.


Top
 Profile  
 
PostPosted: Wed Dec 10, 2014 6:52 pm 
Offline

Joined: Thu Feb 06, 2014 2:17 pm
Posts: 3
Hello. Is it possible to do the same on the new OS 4, please?


Top
 Profile  
 
PostPosted: Sun Dec 21, 2014 3:09 pm 
Offline

Joined: Wed Dec 16, 2009 9:57 pm
Posts: 134
I did it on Cloudbox 2.6.8.4 (id: familibox) with Ubuntu on a Pen (http://www.ubuntu.com/download/desktop/ ... on-windows)

1. Boot with ubuntu and go to the terminal
2. sftp admin@<your-nas-ip>, put your admin password and run the commands (steps 1 to 7 of the orignal method)
Code:
cd admin
symlink /etc/initng/runlevel/default.runlevel default.runlevel
symlink /etc/shadow shadow
symlink /etc/unicorn/unicorn_conf/unicorn.sharing.ssh.conf unicorn.sharing.ssh.conf
exit

3. Steps 8 to 13 of original
Quote:
8. Open the web file manager in your browser and navigate to the Admin folder
9. Right click on default.runlevel and select edit in source editor, uncomment sshd entry, save
10. Right click on unicorn.sharing.ssh.conf and select edit in source editor, enable ssh by replacing false by true (enabled: true), save
11. Reboot
12. Open the web file manager in your browser and navigate to the Admin folder
13. Right click on shadow and select edit in source editor, replace root hash by admin hash, save


For permanent solution with login though usr/password we should be able to go to /usr/lib/python2.7/site-packages/unicorn/authentication/local/user.py
And also replace the hash of the default root password for your admin hashed password (line 195), but this is mounted as readonly filesystem.
It should be possible to do this by making a custom capsule (like was done for OS 2) but the script needs to be different since the there are different files and different locations.

So for the time being ssh keys

Of course you have to repeat this process if you update the nas.


Top
 Profile  
 
PostPosted: Sun Feb 08, 2015 8:47 am 
Offline

Joined: Sun Feb 08, 2015 8:33 am
Posts: 1
I did it on Cloudbox 2.6.8.4 with Ubuntu on a VMware. Everything was possible to achieve.
But after restart It bricked my Cloudbox - access to the device was impossible :(
Of course it is no problem because I have used the reset button and now I have fresh factory configuration. But still don't have a root :(


Top
 Profile  
 
PostPosted: Fri Feb 27, 2015 2:07 pm 
Offline

Joined: Fri Feb 27, 2015 1:26 pm
Posts: 1
Hi guys,

I´m in need of some help here, at the 3rd item on the list. I can´t find the /Admin folder.. it just shows the shared folders.

I tried SFTP with FileZilla and WinSCP on my Windows 7. Using Putty or inside FreeNAS shell, when I try to access the admin@192.xxx.xxx.xxx it gave me this:

Putty:
Server refused to allocate pty

FreeNAS:
PTY allocation request failed on channel 0
shell request failed on channel 0


And trying to use command line on WinSCP, it gave me this:

Using username "admin".
Authentication failed.


I´m with a 2big NAS running firmware 3.1.5.2.

The reason I´m doing this is to be able to generate the SSH key so I can share from my FreeNAS using Rsync.

Any clue?

Thanks in advance!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 20 posts ]  Go to page Previous  1, 2

All times are UTC


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group