Skip to content

Instantly share code, notes, and snippets.

@deshabhishek007
Created September 28, 2018 14:39
Show Gist options
  • Save deshabhishek007/a1df4d64104e4f49455da55136e12f14 to your computer and use it in GitHub Desktop.
Save deshabhishek007/a1df4d64104e4f49455da55136e12f14 to your computer and use it in GitHub Desktop.
Reset File Permission of Linux Server Machine
find public_html -type d -perm 0777 -exec chmod 755 {} \;
find public_html -type f -perm 0666 -exec chmod 644 {} \;
@deshabhishek007
Copy link
Author

chmod -R 644 *
find . -type d -exec chmod 0755 {} ;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment