On Unix, a long time back, I learned about chmod: the
the traditional way to set permissions, on Unix
(and to allow programs to gain privileges, using setuid, setgid and setgid).
I have recently discovered some newer commands, on GNU/Linux:
setfaclextends the traditionalugo:rwxbits and thetbit ofchmod.setcapgives more finfine-graingrained control than over privileges than theug:sbits ofchmod.chattrAllowsallows some other controls (a bit of a mix) ofover the file.
Are there any others?