X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Ffiles%2Ffix_game_perms.sh;h=9d21480842daa73cd5032e2dfe4dc7b267eabd3c;hb=8eefcad20d2254166483e10803c6e2fe90b4f3d5;hp=4cf49d94449707d1e382f7a1d4e6dfd0282a9b45;hpb=5e087d2d7339002bd77810b198c55be8e57a71e7;p=feisty_meow.git diff --git a/scripts/files/fix_game_perms.sh b/scripts/files/fix_game_perms.sh index 4cf49d94..9d214808 100644 --- a/scripts/files/fix_game_perms.sh +++ b/scripts/files/fix_game_perms.sh @@ -3,6 +3,8 @@ # fixes the permissions of files in the local games directory so that # everyone can run or read them if the owner could. -find /home/games -type f -perm /100 -exec chmod a+x {} ';' -find /home/games -type f -perm /400 -exec chmod a+r {} ';' +sudo find /home/games -type f -perm /100 -exec chmod a+x {} ';' +sudo find /home/games -type f -perm /400 -exec chmod a+r {} ';' + +sudo find /home/games -type d -exec chmod a+rx {} ';'