# Rights user / trustee practical matrix test This test checks whether trustee rights granted to `MARIO` actually control real DOS operations. It also contains a rename-rights matrix. ## Files | File | Run as | Purpose | | --- | --- | --- | | `RUTPRE.BAT` | SUPERVISOR | Create test tree and grant rights to MARIO. | | `RUTMARIO.BAT` | MARIO | Perform real operations. | | `RUTPOST.BAT` | SUPERVISOR | Capture final state and summary. | | `RUTZIP.BAT` | SUPERVISOR | Pack results into `RUTSTA.ZIP`. | ## Flow ```text Login SUPERVISOR RUTPRE Logout / Login MARIO RUTMARIO Logout / Login SUPERVISOR RUTPOST RUTZIP ``` Result ZIP: ```text F:\RUCMP\RUTSTA.ZIP ``` Linux package with server log: ```sh sudo ./mars_packtest_v3.sh rutsta 5 mario ``` ## Rename matrix The previous run showed rename failing with `R W M F` while ALL rights worked. This version creates four directories: ```text MOD1 = R W M F MOD2 = R W C M F MOD3 = R W E M F MOD4 = R W C E M F ``` `RUTMARIO.BAT` tries: ```text REN F:\RUTEST\MODx\M.TXT M2.TXT ``` The result is written to: ```text F:\RUCMP\MARIO\U06.OUT ``` ## Other coverage - R/F read + file scan - R/F/C create - R/W/F write/append - R/F/E erase - F only directory scan - R/F/A access-control test - R/W/C/E/M/F/A all-rights operation set `RUTPRE.BAT` now also grants MARIO write/create rights to `F:\RUCMP\MARIO`, so the `Uxx.OUT` files should be created.