# Restricted Area###### 400 Points
### ProblemYou are given a trial run as an admin in the Mystery Shack. Your first task is to define access permissions to the critical information, according to the matrixThe information is stored on the special storage disk. There is also information about system users and a program, which checks, if the settings are correct. If you do it right according to the matrix, you`ll receive a flag.
### DescriptionWe first get an external filesystem. We can mount this to our machine.
```gzip -d image.bin.gzsudo mount image.bin mount1/```
We see that we need to make 5 users, with specific user ids (according to the passwd file).
```useradd -u 1004 dipperuseradd -u 1005 mabeluseradd -u 1006 soosuseradd -u 1007 wendyuseradd -u 1008 stan```
The binary checks the permissions for each of the users. Each user controls 8 digits of the flag.We can fix permissions for one user at a time by changing owner permissions according to the matrix.
EX:```chown dipper lazy_black_catchown dipper lazy_red_cat...chown dipper sly_white_pig```Running the binary ./check_32 after fixing permissions for each user, we get the following results:```Dipper: 09D240FD00000000000000000000000000000000Mabel:  0000000060442F6C000000000000000000000000Soos:   0000000000000000D3F45E470000000000000000Wendy:  000000000000000000000000704D9DCB00000000Stan:   00000000000000000000000000000000F0344B0D```Putting the results together gives us the flag.
Flag: 09D240FD60442F6CD3F45E47704D9DCBF0344B0D