Created
October 2, 2013 17:46
-
-
Save TacoSteemers/6797573 to your computer and use it in GitHub Desktop.
Recursive chown/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
Don't forget to use the correct user:group and permissions. | |
find . -print0 | xargs --null chown server:server | |
chmod for directories: | |
find . -type d -print0 | xargs --null chmod -R 755 | |
chmod for files: | |
find . -type f -print0 | xargs --null chmod -R 755 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment