Re: [opensuse] chmod question

On Tue, 2007-11-06 at 11:48 -0800, James D. Parra wrote:

Out of curiosity, what is the S for in, -rwxr-Sr-t? Is that a sticky bit and
id so, how is it set with chmod?

-rwxr-Sr-t 1 root root 25016 Nov 6 11:38 temp.txt
-rw-r--r-- 1 root root 9622 Mar 19 2005 generic

Thank you,


The "S" is the setuid or setgid bit is set.

Because it is shown in the second triplet, this denotes setgid. the
uppercase convention denotes that the setgid is set and not the execute
bit. Because it is shown in the last field of a triplet you cannot be
shown both the normal execution bit status of either "-" or "x"
depending on permissions.

In the event that the setgid was set and the execute bit was also set
then the "S" character would be lowercase. Also there could be a "t"
character in this position to denote the sticky bit being set. The case
convention also applies to the "t" character as well.


To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx