Skip to content

Instantly share code, notes, and snippets.

@spot62
Created May 21, 2016 08:29
Show Gist options
  • Save spot62/318524721bf30d9032ecb11fc76d637e to your computer and use it in GitHub Desktop.
Save spot62/318524721bf30d9032ecb11fc76d637e to your computer and use it in GitHub Desktop.
Rights setup recursive
#!/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