Skip to content

Instantly share code, notes, and snippets.

@montgomerykern
Last active March 30, 2016 11:29
CLI Commands Permissions
# 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