Skip to content

Instantly share code, notes, and snippets.

@antoinebrl
Created May 19, 2022 09:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antoinebrl/4332f1a12db2a2edf7731ca6946f467e to your computer and use it in GitHub Desktop.
Save antoinebrl/4332f1a12db2a2edf7731ca6946f467e to your computer and use it in GitHub Desktop.
Reset file permissions
find . ! -user root -exec chown root:root {} \;
find . -type f ! -perm 644 -exec chmod 644 {} \;
find . -type d ! -perm 755 -exec chmod 755 {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment