Both permission sets mean owner can read,write,execute; group and world can read,execute.
I expect 4755 to be r--rwxr-xr-
x, but instead it is -rwsr-xr-x
.
What is it?
Copying my comment to StephenKitt below
I've been visualising the permissions as literal bits. So that 755 is 111101101
, But now we have a 100
in front of those -- so now 100111101101
which is somehow combined to put an 's' in that first field. It's not an AND because 7&4
is 4, and in fact 7
is as high we can go. So clearly my visualisation/expectation is astray.
755
is 111101101, But now we have a100
in front of those -- so now 100111101101 which is somehow combined to put an 's' in that first field. It's not an AND because 7&4 is 4, and in fact 7 is as high we can go. So clearly my visualisation/expectation is astray. Can you see where?