Skip to content

Instantly share code, notes, and snippets.

@Guibzs
Last active March 6, 2019 13:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Guibzs/639b8b731dc2fb231980c05bd15051fc to your computer and use it in GitHub Desktop.
Save Guibzs/639b8b731dc2fb231980c05bd15051fc to your computer and use it in GitHub Desktop.
Bash ~ Change file permissions and ownership
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
chown -R root:root *;
sudo chown -R $(whoami) .
sudo chmod -R 777 .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment