
What's that 'T' in the permissions mean, and how does it work? Is it related to this 'sticky bit' thing I've heard about but never quite understood?
|
What's that 'T' in the permissions mean, and how does it work? Is it related to this 'sticky bit' thing I've heard about but never quite understood? |
|||
|
|
|
I thought I'd combine the info from the previous answers and show another way of looking at it. Nautilus can help you see how things are here. Consider this test directory I created:
Now, consider this second one:
As you can see, in both cases the sticky bit is set. In the capital-T version, the execute bit is unset. In the lowercase-t version, the x bit is set. For directories, here's what Wikipedia has to say:
|
|||
|
|
|
When the 'T' is present, it means that 'x' permission is has not been given on the directory/file. If you give 'x' permission then a 't' will be shown. You can set the 'T'/'t' with a 4 character permssion, rather than a 3 character. 0777, for example, whould give rwx to owner, group, and world. 1754 would give rwxr-xr-T permission. The first character controls the SUID, SGID, and Stickbit. 0 = All bits off 1 = Sticky bit on 2 = SGID bit on 4 = SUID bit on 5 = SUID and Sticky bit on 6 = SUID and SGID bit on 7 = All bits on. To learn more go here: on this |
|||||
|