I know rwx
= 7 in absolute permissions or numerical/octal representation of the permissions.
But what number is used to represent permission rws
? (where the s is the set-uid bit that tells execution to happen with the privileges of the file owner).
For example: rwxrwsr--
I have never heard of anything higher that 777 so perhaps is there not a numerical representation for this?
Additionally, is it possible to have the set-uid bit in both user and group (ex. rwsrwsr--
)? And if so what would be the numerical representation for this?
rwxrwsr-t
would then have a 5 in the first digit as setuid and sticky bit? – JFreeman Mar 15 '22 at 10:173775
since thes
comes at group's place (=2). – iBug Mar 16 '22 at 06:55