Saturday, April 10, 2010

Activate SSH for eTrayz User.

I have given my users the ability to log on to home folder with SSH on port 22. This mainly for my FTP is already occupied to another NAS.

There was some problem after edtiting the /etc/sshd/sshd_config and adding to the end:

AllowGroups etrayz

>And restarted the SSH:

/etc/init.d/sshd restart

Nothing happens, I gott a error and was disconnected. The problem was in the passwd file. The users created in eTrayz has no shell defined i the passwd file. And after changing the varible /bin/false to /bin/bash or /bin/sh then the SSH login works for that user.

The command passwd -s [user] is not working so to change the file you just hav to edit it with vi as root.

Next problem is; how to restrict users to not see all files and folders.. hmm. Ok, i hope i can shut down my other NAS so I can use port 20,21, that would be better. Well I learnt how to set up SSH for users.

No comments:

Post a Comment