LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   how would i safely lock users to thier home dir? (https://www.linuxquestions.org/questions/linux-security-4/how-would-i-safely-lock-users-to-thier-home-dir-74711/)

f1uke 07-21-2003 09:30 PM

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

cxel91a 07-21-2003 11:14 PM

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 &nbsp ~

or to set the default root for a single user use:

<Global>
DefaultRoot /home/guest &nbsp guest
</Global>


bsunil 07-22-2003 02:23 AM

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 10:46 AM.