How do you give read/write/execute to all files in a directory

Asked by Sidarth Dasari

I have a directory which I would like to be made rwx to everybody. What would be the command to do this to the directory and all its sub-directories

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Lee Glidewell
Solved:
Last query:
Last reply:
Revision history for this message
Best Lee Glidewell (lee-glidewell) said :
#1

chmod -R a+rwx /path/to/dir

This may require you to use "sudo" as well, depending on the current ownership of the directory you want to alter.

Revision history for this message
Sidarth Dasari (sirsid) said :
#2

Thanks Lee Glidewell, that solved my question.