9d21480842daa73cd5032e2dfe4dc7b267eabd3c
[feisty_meow.git] / scripts / security / fix_game_perms.sh
1 #!/bin/bash
2
3 # fixes the permissions of files in the local games directory so that
4 # everyone can run or read them if the owner could.
5
6 sudo find /home/games -type f -perm /100 -exec chmod a+x {} ';'
7 sudo find /home/games -type f -perm /400 -exec chmod a+r {} ';'
8
9 sudo find /home/games -type d -exec chmod a+rx {} ';'
10