1 # 2 # These tests are setting file permissions/group/uid and are trying to 3 # open/write/execute the file. 4 # 5 # fs_perms file_mode file_uid file_gid test_uid test_gid mode (r|w|x) expected_result 6 7 # We are executing shell script, thuss 8 # both exec and read right is needed. 9 fs_perms01 fs_perms 005 99 99 12 100 x 0 10 fs_perms02 fs_perms 050 99 99 200 99 x 0 11 fs_perms03 fs_perms 500 99 99 99 500 x 0 12 fs_perms04 fs_perms 002 99 99 12 100 w 0 13 fs_perms05 fs_perms 020 99 99 200 99 w 0 14 fs_perms06 fs_perms 200 99 99 99 500 w 0 15 fs_perms07 fs_perms 004 99 99 12 100 r 0 16 fs_perms08 fs_perms 040 99 99 200 99 r 0 17 fs_perms09 fs_perms 400 99 99 99 500 r 0 18 fs_perms10 fs_perms 000 99 99 99 99 r 1 19 fs_perms11 fs_perms 000 99 99 99 99 w 1 20 fs_perms12 fs_perms 000 99 99 99 99 x 1 21 fs_perms13 fs_perms 010 99 99 99 500 x 1 22 fs_perms14 fs_perms 100 99 99 200 99 x 1 23 fs_perms15 fs_perms 020 99 99 99 500 w 1 24 fs_perms16 fs_perms 200 99 99 200 99 w 1 25 fs_perms17 fs_perms 040 99 99 99 500 r 1 26 fs_perms18 fs_perms 400 99 99 200 99 r 1 27