-
-
Save jasperf/28453b3fdf462ac4390d to your computer and use it in GitHub Desktop.
change all file and folder permission from shell with xargs for servers running mod PHP #chmod
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# change permissions for all files, skipping dirs | |
find . -type f | xargs chmod 664 | |
# change permissions for all dirs, skipping files | |
find . -type d | xargs chmod 775 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment