LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Read/write permission to ALL users on a directory and everything in it (https://www.linuxquestions.org/questions/linux-newbie-8/read-write-permission-to-all-users-on-a-directory-and-everything-in-it-606638/)

Virtuality 12-13-2007 07:44 PM

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

pljvaldez 12-13-2007 07:52 PM

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)?

gilead 12-13-2007 08:13 PM

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

Virtuality 12-13-2007 08:29 PM

Cool thanks, it's working fine now. Don't know why it wasn't before, suppose it's a mistake I made somewhere :)


All times are GMT -5. The time now is 12:59 PM.