Skip to content

Instantly share code, notes, and snippets.

@anshumanv
Created July 31, 2019 03:53
Show Gist options
  • Save anshumanv/a690bc764c85388b77d4f1f4b5241b62 to your computer and use it in GitHub Desktop.
Save anshumanv/a690bc764c85388b77d4f1f4b5241b62 to your computer and use it in GitHub Desktop.
Recover file permissions recursively

After google that, it is due to the write permission of the others (as the red mark in the picture). There are 2 ways to fix this annoying coloring.

Change the bash color setting: refer to the Reference 2 Use the chmod to recover the directory permission to default 755, or use below command to recursively set all directory to default 755

$ find . -type d -print0 | xargs -0 chmod 755

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