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