I know how to set read/write/execute with three numbers from the Arch wiki's file permissions page. I also know that chmod 7777
will set the setuid
, setgid
, and sticky
bits to true
. But which number controls these bits? Is it the first or the last number? Which value is set to true when a 1
, 2
, or 4
is passed as this value?
Edit: I have added this information to the Arch wiki for future reference.
My question is much smaller in scope than the proposed duplicate.