Creation combines a requested mode with either the process mask or inherited default ACL rules.

Umask filters new permissions, with a default ACL exception

A process’s umask removes permission bits when creating files and directories under the ordinary mode-based creation rule. The application first supplies a requested mode; the mask restricts that request. It is neither a complete access policy nor an instruction to rewrite existing files. A directory’s default access control list changes the creation calculation, so inspecting only the process mask can give an incomplete prediction. ...

October 9, 2027 · 5 min · XB Field Notes
A helper program running with the identity of its owner to gain a concentrated ability.

Setuid runs as the file owner

A setuid binary runs with the identity of its owner rather than of whoever started it. The kernel swaps credentials at exec time, which is how passwd rewrites /etc/shadow without an ordinary user holding write permission on it. The bit belongs to the file, and it grants the owner’s entire identity, not one narrow ability. ...

October 2, 2027 · 4 min · XB Field Notes
Sticky protects another owner’s directory entry while file permissions still govern the contents.

The sticky bit restricts removal in a shared directory

The sticky bit on a Linux directory adds an ownership restriction to removing or renaming entries. It is commonly combined with broad directory write and search permissions so several users can create temporary files without freely removing one another’s entries. The directory permission check and the sticky ownership check both matter; sticky is an additional condition, not a replacement for normal access control. ...

October 1, 2027 · 5 min · XB Field Notes