LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 12-13-2007, 07:44 PM   #1
Virtuality
Member
 
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, 07:52 PM   #2
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
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, 08:13 PM   #3
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
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):
Code:
chmod -R a+rwX /directory
 
Old 12-13-2007, 08:29 PM   #4
Virtuality
Member
 
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
 
  


Reply


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


All times are GMT -5. The time now is 09:06 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration