I've seen various Linux file permissions such as rwx and rws, but I have never seen the permission set rwS. Can someone please explain to me what the capitol 'S' stands for?

link|improve this question
feedback

2 Answers

up vote 8 down vote accepted

The capital S indicates the file has a setuid bit set but is not executable.

[root@host:/]$ touch file
[root@host:/]$ chmod 4755 file
[root@host:/]$ ls -l file
-rwsr-xr-x 1 root root 0 Jul 25 15:05 file
[root@host:/]$ chmod -x file
[root@host:/]$ ls -l file
-rwSr--r-- 1 root root 0 Jul 25 15:05 file
link|improve this answer
feedback

From info ls "What information is listed":

    `S'
          If the set-user-ID or set-group-ID bit is set but the
          corresponding executable bit is not set.
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.