Last active
October 22, 2018 14:33
-
-
Save Neolot/345fe6999e51bb33600a to your computer and use it in GitHub Desktop.
LINUX Set permissions recursively
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
# Chown | |
chown user:group /path/to/base/dir -R | |
# For directories only | |
find /path/to/base/dir -type d -exec chmod 755 {} + | |
# For files only | |
find /path/to/base/dir -type f -exec chmod 644 {} + |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment