LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Prevent access to root folder (https://www.linuxquestions.org/questions/linux-security-4/prevent-access-to-root-folder-576944/)

]SK[ 08-14-2007 04:31 AM

Prevent access to root folder
 
How do I stop users from entering the root home folder?

I would sooner not have standard users not poking around in there.

w3bd3vil 08-14-2007 05:10 AM

by default no standard user is allowed to enter the root folder.

]SK[ 08-14-2007 06:23 AM

I created a standard user and managed to browse and read a script in the root's folder?

Im using arch linux.

I just tested this on a hosted shell which is running FreeBSD and I too as a standard user can view the contents of the root folder.

jschiwal 08-14-2007 06:26 AM

By root folder do you mean /root or /?

]SK[ 08-14-2007 06:35 AM

/root

<Guff to fill maximum 10 character limit>

pixellany 08-14-2007 06:38 AM

This should do it:
chmod 700 /root

]SK[ 08-14-2007 06:48 AM

Yep works great. Thanks.


All times are GMT -5. The time now is 04:35 PM.