LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 03-20-2009, 01:49 PM   #1
htamayo
Member
 
Registered: Jan 2005
Location: san salvador, el salvador
Distribution: Debian Stable, UbuntuStudio Karmic Koala
Posts: 190

Rep: Reputation: 30
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
 
Old 03-20-2009, 01:53 PM   #2
Valery Reznic
ELF Statifier author
 
Registered: Oct 2007
Posts: 676

Rep: Reputation: 137Reputation: 137
Quote:
Originally Posted by htamayo View Post
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.
 
Old 03-20-2009, 03:45 PM   #3
htamayo
Member
 
Registered: Jan 2005
Location: san salvador, el salvador
Distribution: Debian Stable, UbuntuStudio Karmic Koala
Posts: 190

Original Poster
Rep: Reputation: 30
thanks for your help, it works

All the best
 
Old 03-20-2009, 03:45 PM   #4
htamayo
Member
 
Registered: Jan 2005
Location: san salvador, el salvador
Distribution: Debian Stable, UbuntuStudio Karmic Koala
Posts: 190

Original Poster
Rep: Reputation: 30
thanks for your help, it works

All the best
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"bad interpreter : no such file or directory" when configure "flex" acer_peri Linux - Software 10 11-10-2010 01:19 AM
"chmod" of directory in the hdd, storage server kim,jw Linux - General 7 12-22-2008 04:15 AM
Logged in as "root"/Fedora 8 but get "Operation not permitted" when using "chmod etc gosunlee Linux - Newbie 7 02-10-2008 05:56 AM
"WARNING: Circular directory structure" error when deleting directory pistonbrew Linux - Software 5 02-03-2005 06:05 AM
"ifnet structure (regarding configured interfaces)header file in linux9?" deepender Programming 0 12-07-2003 12:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration