Last active
March 6, 2019 13:33
-
-
Save Guibzs/639b8b731dc2fb231980c05bd15051fc to your computer and use it in GitHub Desktop.
Bash ~ Change file permissions and ownership
This file contains hidden or 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 . -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