~/ learn/ comp-325/ cards/ Symbolic umask, and why 000 is dangerous
1 of 8

See both forms of the same mask

See both forms of the same mask

Answer

umask umask -S umask 027 umask -S

The first pair prints `0022` and `u=rwx,g=rx,o=rx`. After setting 027 the symbolic form becomes `u=rwx,g=rx,o=` — the others clause is now empty.

Sarwar & Koretsky 3e §5.5.4

space flip · ← → navigate · esc to exit
NORMAL ~/memra/library/98f5e123-a00b-4fec-9cc0-29a6b4f67000/flashcard utf-8 LF