how would i safely lock users to thier home dir?
I have a few questions, the first is how would i safely lock users to there home dir, so that they are not able to roam around the box freely?
My second question is I have added a group called ftpusers, which im am adding the users I only want to allow to sftp in. Ive tried replacing "/bin/bash" with "/sbin/nologin" in the passwd file for that account, but that then doesnt allow them to sftp in? How can I fix this and do it right? -Jason |
You will have to give them a valid login shell.
Try this keyword to set the default root. I use proftp so I'm not sure if it will work for you. DefaultRoot   ~ or to set the default root for a single user use: <Global> DefaultRoot /home/guest   guest </Global> |
Hi
Can you please try with the file /etc/security/access.conf and specify the users who are not allowed to login thru console. Hope this will solve ur prob. Regards |
All times are GMT -5. The time now is 08:20 PM. |