Originally Posted by gmartin
I need to find a good tutorial on unix/linux rights. I know the basics, ok. But the sticky bit, uid & gid still trip me up. For instance, the "s" at the beginning of this line:
srwxrwxrwx 1 mysql mysql 0 2009-01-01 01:24 mysql.sock=
I assume that's sticky but I'm not sure what that means.
Nope. The first character denotes what type of file it is,
d = directory
- = regular file
l = symbolic link
b = block device
s = socket
... and some other less common ones.
The Sticky bit
is actually depicted by a 't' in the last column, e.g. drwxrwxrwt
Over the years, the purpose of the sticky bit has evolved. The wikipedia article linked above has more details.
If you want a starting place to learn a little more, the following is quite often recommended: