Differences

This shows you the differences between the selected revision and the current version of the page.

howto:multiplesshusers 2009/05/12 21:15 howto:multiplesshusers 2017/09/06 18:38 current
Line 1: Line 1:
How do you allow different users to access your NAS with SSH? How do you allow different users to access your NAS with SSH?
-Use the NAS web-interface to add a user (test in this case) to the device.+Use the NAS web-interface to add a user (**test** in this case) to the device.
if you type at the prompt:  ''cat /etc/passwd'' if you type at the prompt:  ''cat /etc/passwd''
Line 7: Line 7:
''test:x:504:504:Linux User,,,:/home/ftp:/bin/sh'' ''test:x:504:504:Linux User,,,:/home/ftp:/bin/sh''
-The problem is that the path for the bash is not correct: '':/bin/sh'' should be ''/ffp/bin/sh'', the same as with the root account+The problem is that the path for the Shell sh or bash is not correct: '':/bin/sh'' should be ''/ffp/bin/sh'', the same as with the root account.
-use vi to edit ''vi /etc/passwd'' the file.+
-Next use the command ''pwconv'' and ''store-passwd.sh'' to commit the changes to the passwd file and the shadow file.+''usermod -s /ffp/bin/sh **test**'' or ''chsh -s /ffp/bin/sh **test**'' should work.
-For use with SSH-keys the NAS lacks space for storing the .ssh folder. +Use ''store-passwd.sh'' to commit the changes to the NAS. 
 + 
 +For use with SSH-keys the NAS lacks space for storing the .ssh folder. [[howto:changehomedir]] explains how to change the home directory, so enough space for pleny of ssh keys is possible.

Navigation

Personal Tools