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?