php/bin/fix-permissions
Radoslav Pitonak d189b9f4b7 initial commit
2017-05-26 12:54:08 +02:00

6 lines
221 B
Bash
Executable file

#!/bin/sh
# Fix permissions on the given directory to allow group read/write of
# regular files and execute of directories.
find $1 -exec chgrp 0 {} \;
find $1 -exec chmod g+rw {} \;
find $1 -type d -exec chmod g+x {} +