3

Does setting u+s on a directory imply u+x?

1

1 Answer 1

5

No, there's a difference ;-)

# ls -l x -rw-r--r-- 1 root root 0 Jan 27 20:07 x # chmod u+s x # ls -l x -rwSr--r-- 1 root root 0 Jan 27 20:07 x # chmod u+x x # ls -l x -rwsr--r-- 1 root root 0 Jan 27 20:07 x 

See, e.g. http://www.linuxnix.com/2011/12/suid-set-suid-linuxunix.html

You see the difference more clearly

  • Capital S: chmod 4655 (no execute)
  • small s: chmod 4755 (execute set)

For when you would need capital S? Good question...

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.