Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
I'm using RHEL 5.3 for web server.
I have to give read and execute permission to all the directories in /home/ who have group ownership of apache.
How would I do that? Can anybody help me?
I would be very thankful!
Thank you very much for your promt reply. Thanks very much.
But how would I check that all the directories under /home/ have group ownership of 'apache'?
No no no, I don't have to give 'apache' ownership to all directories under /home/ directory. I have to only give 'read' and 'execute' premission to all directories under /home directory who have 'apache' ownership.
Now suppose there are so many directories under /home/arproject/ then, how would I give 'read' and 'execute' permission to all those directories who have group ownership of 'apache'? One bye one it would take long time. Then is there any other method that I can give permissions through one command?
Now suppose there are so many directories under /home/arproject/ then, how would I give 'read' and 'execute' permission to all those directories who have group ownership of 'apache'? One bye one it would take long time. Then is there any other method that I can give permissions through one command?
But, note that it is necessary to have at least "execute" permission for every parent directory in the path. For example, if you had a directory "/home/arproject/dir1/apachefiles", group "apache" would need to have "x" permission in /home, /home/arproject, and /home/arproject/dir1 in order to get to the apachefiles directory. If you can't accomplish that with the usual "user", "group", and "other" permissions, you would need to resort to ACLs to give the needed access to group "apache". See `man setfacls` and `man getfacls` for details.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.