For all users to have read and write access, that would be 0777
which is a bit dangerous, especially if you are running a webserver.
Like @unwind said:
chmod -R 0777 /mydirectory
Will allow all users read and write access to all files and folders within that directory
Depending on your purpose, you may want to read about sticky bits, which allow all users to create new files, but not to delete or edit other files in a directory:
chmod +t /mydirectory
Also, in case you didn't know man chmod
will bring up the manual page for the chmod
command, which you can search for the text "recursive" by typing /recursive
@unwind -- I mean every file and sub directory of a directory I chmod has read and write permission's for all. Is that what this command does? Thanks – None – 2010-03-31T12:02:24.277
1When I put the -r before the 0755 I get 0755 - no such file or directory.. putting the -r after solves my problem. – Tim Mottram – 2018-06-26T15:42:05.043
"do do". lol. nice. – ytpillai – 2018-07-03T15:32:41.150