Why is setuid ignored on directories?

Posted by Blacklight Shining on Super User See other posts from Super User or by Blacklight Shining
Published on 2012-09-09T00:14:40Z Indexed on 2012/09/09 3:40 UTC
Read the original article Hit count: 493

Filed under:
|

On Linux systems, you can successfully chmod u+s $some_directory, but instead of forcing the ownership of new subdirectories and files to be the owner of the containing directory (and setting subdirectories u+s as well) as you might expect, the system just ignores the setuid bit. Subdirectories and files continue to inherit the UIDs of their creating processes, and subdirectories are not setuid by default.

Why is setuid ignored on directories, and how can I get the system to recognize it?

© Super User or respective owner

Related posts about linux

Related posts about file-permissions