Process commands until the end of input:
mode M— M is octal (754) or symbolic (rwxr-xr--, 9 characters). Printmode 754 = 754 = rwxr-xr--(the input, the 3-digit octal, the symbolic form).umask U file|dir— the new object's mode = base & ~U (base 666 for files, 777 for directories). Printumask 022 file -> 644 rw-r--r--.check user groups owner fileGroup mode op— groups is a comma-separated list, op isr,worx. If the user isroot: r and w are always allowed, x only if at least one x bit is set — print… -> ALLOWED (root bypasses permissions)or, for x,(root, needs some x bit). Otherwise select one class: owner if user = owner, else group if fileGroup is in groups, else other; printben w on ana:staff rw-r----- -> DENIED (group class).