Last active
March 30, 2016 11:29
CLI Commands Permissions
This file contains hidden or 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
# for directories | |
find . -type d -print0 | xargs -0 chmod 0755 | |
# for files | |
find . -type f -print0 | xargs -0 chmod 0644 | |
#Cent OS Based | |
find . -type d -perm 777 -exec chmod 755 {} \; (for changing the directory permission) | |
find . -type f -perm 777 -exec chmod 644 {} \; (for changing the file permission) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment