fixperms.sh 233 B

12345678
  1. #!/bin/sh
  2. chgrp www-data .
  3. chgrp -R www-data *
  4. sh -c "find . -type f | xargs chmod 664"
  5. sh -c "find ./bin -type f | xargs chmod 775"
  6. sh -c "find . -type d | xargs chmod 775"
  7. sh -c "find . -type d | xargs chmod +s"
  8. sh -c "umask 0002"