Skip to content

Instantly share code, notes, and snippets.

@sergii
Last active August 29, 2015 14:13
Show Gist options
  • Save sergii/77cca485ac4ccf59108d to your computer and use it in GitHub Desktop.
Save sergii/77cca485ac4ccf59108d to your computer and use it in GitHub Desktop.
chmod on folder
Apply chmod commands to folder:
sudo chmod -R 777 /path/to/directory
OR
sudo find /home/s/ooma/sp_030315/ -type f -exec chmod 777 {} \; # FOR FILES
sudo find /home/s/ooma/sp_030315/ -type d -exec chmod 777 {} \; # FOR DIRECTORIES
# Permission rwx
7 read, write and execute 111
6 read and write 110
5 read and execute 101
4 read only 100
3 write and execute 011
2 write only 010
1 execute only 001
0 none 000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment