LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Restricting users to two directories Centos 5.3 (http://www.linuxquestions.org/questions/linux-server-73/restricting-users-to-two-directories-centos-5-3-a-789385/)

thebomb 02-16-2010 12:42 AM

Restricting users to two directories Centos 5.3
 
Hi,

I need some kind of step by step process to restrict my users to only have access to directories that I specify ?

For example user joe can only access his home directory, read access to /tmp and read access to /var/log/httpd ?

Is this possible ?

Thank you.

chrism01 02-16-2010 01:01 AM

For normal/sane operation, the user will need rw access to his home dir and /tmp.
The default setup will take care of that for you.

For /var/log/httpd you'll probably need an acl :
http://linux.die.net/man/1/setfacl
http://www.vanemery.com/Linux/ACL/linux-acl.html


All times are GMT -5. The time now is 11:44 AM.