Re: Does the suid bit do anything on a directory ?



On Tue, 03 Jan 2006, in the Usenet newsgroup comp.os.linux, in article
<gcbr83-8rh.ln1@xxxxxxxxxxxxxxxxxxxxxxxxx>, Mark Hobley wrote:

>Does the SUID bit have any effect on a directory when using an ext2 filesystem?

SUID - as in 'chmod 4xxx /some/directory' has no effect.

SGID - as in 'chmod 2xxx /some/directory' will change the _GROUP_ ownership
of files created in that directory to that of the group owner of the directory.

Sticky Bit as in 'chmod 1xxx /some/directory' will prevent users OTHER THAN
the owner or root from deleting files in that directory.

Old guy
.