Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 12-18-2005, 08:42 PM   #1
LQ Newbie
Registered: Nov 2005
Posts: 4

Rep: Reputation: 0
Setting permissions that include sub-directories

I've found quite a bit of posts regarding permissions and I'm pretty sure I have at least a basic understanding of how permissions work in Linux. Here is my question... Say I have a directory called storage_1 and in that directory are multiple files and directories and in those directories are multiple files and directories etc. Now I want to set read and execute permissions to all users and groups and write permission to only owner, and root of course. I'm using Fedora Core 4, so I can just right click on the folder "storage_1", select the "permissions" tab and set what permissions I want. So I would think. That doesn't work though. It only set those permissions for THAT object, leaving everything in that folder untouched. Just selecting each file or folder and changing the permissions wouldn't be such a problem if there wasn't 200GB of files in that directory. So, what I'm asking is this: Is there a way to set permissions that will affect ALL sub-directories and files? Kind of like the way Windoze uses inherent permissions for child objects... Any help would be greatly appreciated.
Old 12-18-2005, 08:54 PM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
chmod -R u+w,go=rx /path/to/files

Old 12-19-2005, 10:33 AM   #3
LQ Newbie
Registered: Nov 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks so much tinkster. That worked wonderfully


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how to rsync ex/include select specific directories ? dtimms Linux - Software 1 01-11-2005 05:16 AM
finding directories w/ certain permissions secular Linux - Security 1 12-28-2004 04:36 PM
How to include library directories? davee Programming 7 04-05-2004 05:41 AM
Where to find/How to change .h include directories for g++ sfcesario Linux - Software 1 01-31-2004 10:12 AM
Setting $PATH to include /home at login?? smurphy Linux - General 3 08-08-2001 02:46 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:54 PM.

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