Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
In school we have a server and all users have their own folder in the home dir. But I can read theirs and they can read mine. I would like to remove the read and search attribs but if I do that the httpd wont be able to read the content of the www dir in it. So is there any way to grant certain rights to a dir in general and then make exceptions such as this and this dir can be read and accessed by the nobody group?
thx
If I'm not mistaken, the execute permission on a directory allows one to enter that directory; read permission allows one to read files in that directory; write permission allows one to write to that directory.
So, remove execute permission for everyone but the student to whom the directory is assigned, and only that student has access.
It should go without saying that root still has access.
Last edited by bigrigdriver; 08-28-2007 at 12:58 PM.
I think I managed to achieve what you are after by making sure "other" permissions on the user's home dir are set to only execute. In other words, looking like: drwxr-x--x
I think I managed to achieve what you are after by making sure "other" permissions on the user's home dir are set to only execute. In other words, looking like: drwxr-x--x
That is awesome! thanx man... it helped me a lot. Now I have not feeling tht anybody can read anything I put on the server.
You're very welcome. BTW, when I was doing the test I forgot that in the OP you mentioned you wanted /home/*/www to be readable by the nobody group. Even though my example works (/home/eraseme/www is readable by anyone), I should have probably tightened it up like:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.