I did an 'ls -l' of my home dir recently, and saw a lot of 's' in
the whatever_you_call_that_thing_on_the_left_with_10_characters.
Could someone add to my knowledge of these guys? Here's what I
know (some of which may be wrong) ...
The first character is used to tell what kind of device it is:
d=directory
b=block device
c=character device
l=symlink
The next 9 are broken up into 3's. The 1st for root, the 2nd for
group, and the 3rd for user. The 1st of each is for read
permissions, the 2nd of each is for write permissions, and the 3rd
of each is for executable permissions.
What I'm not too clear on is the sticky bits, setuid, setgid stuff.
I found this in some documentation about the executable bit...
`s'
If the setuid or setgid bit and the corresponding executable
bit are both set.
`S'
If the setuid or setgid bit is set but the corresponding
executable bit is not set.
`t'
If the sticky bit and the other-executable bit are both set.
`T'
If the sticky bit is set but the other-executable bit is not
set.
`x'
If the executable bit is set and none of the above apply.
`-'
Otherwise.
But it doesn't explain too much if I don't understand what setuid,
setgid, and sticky really mean. Can someone explain this?
Thanks,
Rob.