Linux - Newbie This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
03-20-2009, 01:49 PM
|
#1
|
|
Member
Registered: Jan 2005
Location: san salvador, el salvador
Distribution: Debian Stable, UbuntuStudio Karmic Koala
Posts: 190
Rep:
|
how to apply "chmod g+r" permissions to a deep file and directory structure
Hi, I need to apply "chmod g+r" to a deep file and directory structure, these files are part of a shared directory that has to be accesible to several users, I found that some files can't be read by the users because the permissions.
My questions are:
1. is there a fast way to apply this file permissions change to all structure? because if I do chmod g+r * only applies to the files and directory that I'm currently viewing, but the files that are inside the directories still have the previous permissions, so, i have to go directory by directory applying this change.
2. is possible to set in my linux, that all files that are created or pasted inside of a directory have a specific file permissions, for example ugo+rw?
All the best
|
|
|
|
03-20-2009, 01:53 PM
|
#2
|
|
ELF Statifier author
Registered: Oct 2007
Posts: 648
Rep: 
|
Quote:
Originally Posted by htamayo
Hi, I need to apply "chmod g+r" to a deep file and directory structure, these files are part of a shared directory that has to be accesible to several users, I found that some files can't be read by the users because the permissions.
My questions are:
1. is there a fast way to apply this file permissions change to all structure? because if I do chmod g+r * only applies to the files and directory that I'm currently viewing, but the files that are inside the directories still have the previous permissions, so, i have to go directory by directory applying this change.
2. is possible to set in my linux, that all files that are created or pasted inside of a directory have a specific file permissions, for example ugo+rw?
All the best
|
1) 'chmod -R' should do the trick
2) As long as I know it's impossible. If you make your directory setgid, then all files created inside will be with gid of this directory.
|
|
|
|
03-20-2009, 03:45 PM
|
#3
|
|
Member
Registered: Jan 2005
Location: san salvador, el salvador
Distribution: Debian Stable, UbuntuStudio Karmic Koala
Posts: 190
Original Poster
Rep:
|
thanks for your help, it works
All the best
|
|
|
|
03-20-2009, 03:45 PM
|
#4
|
|
Member
Registered: Jan 2005
Location: san salvador, el salvador
Distribution: Debian Stable, UbuntuStudio Karmic Koala
Posts: 190
Original Poster
Rep:
|
thanks for your help, it works
All the best
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:48 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|