Share your knowledge at the LQ Wiki.
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-13-2007, 08:44 PM   #1
Registered: Jan 2007
Distribution: Debian Etch
Posts: 193

Rep: Reputation: 30
Read/write permission to ALL users on a directory and everything in it

I have searched but the threads give read/write permissions only to a single folder.

I want to chmod an entire directory with everything in it.

I was using chmod -R a+rw /directory
Old 12-13-2007, 08:52 PM   #2
LQ Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Are you getting an error? That should be correct, I believe. Are you using the complete directory path (i.e. /home/user/stuff instead of /stuff)?
Old 12-13-2007, 09:13 PM   #3
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
You may want to use the following instead. The capital 'X' means set the executable bit if it is a directory (or a file that already has the executable bit set):
chmod -R a+rwX /directory
Old 12-13-2007, 09:29 PM   #4
Registered: Jan 2007
Distribution: Debian Etch
Posts: 193

Original Poster
Rep: Reputation: 30
Cool thanks, it's working fine now. Don't know why it wasn't before, suppose it's a mistake I made somewhere


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
Colecting information about users that read/write/delete in a directory aclica Linux - Newbie 2 11-15-2007 06:25 PM
Find users how read/write/delete in a directory aclica Linux - Newbie 4 11-14-2007 07:41 AM
share read and write permission to users suguname Mandriva 3 01-18-2005 01:53 AM
Read and Write permission jing Linux - Newbie 3 07-13-2004 11:33 PM
Read/write permission skopje909 Linux - General 4 11-08-2001 03:41 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:48 AM.

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
Open Source Consulting | Domain Registration