Created
May 19, 2022 09:07
-
-
Save antoinebrl/4332f1a12db2a2edf7731ca6946f467e to your computer and use it in GitHub Desktop.
Reset file permissions
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
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