~/ 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/4b7d4238-3190-4d1c-8add-ee3fe73d3329/flashcard utf-8 LF