Created
May 21, 2016 08:29
-
-
Save spot62/318524721bf30d9032ecb11fc76d637e to your computer and use it in GitHub Desktop.
Rights setup recursive
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
#!/bin/sh | |
# recursive rights setup for files and directories (instead of chmod -R) | |
find ${DIR} -type d -exec chmod 755 {} \; | |
find ${DIR} -type f -exec chmod 644 {} \; | |
# in the case of blocking by seLinux: | |
# restorecon -rv /var/www/html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment