[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: chmod no longer clears sticky bit
From: |
Mike Frysinger |
Subject: |
Re: chmod no longer clears sticky bit |
Date: |
Sat, 30 Sep 2006 19:26:47 -0400 |
User-agent: |
KMail/1.9.4 |
On Saturday 30 September 2006 19:20, Paul Eggert wrote:
> Yes, that's mentioned in the NEWS file. It says:
i really need to start reading that thing
> chmod, install, and mkdir now preserve a directory's set-user-ID and
> set-group-ID bits unless you explicitly request otherwise. E.g.,
> `chmod 755 DIR'
i guess this is allowed by spec huh ?
http://www.opengroup.org/onlinepubs/009695399/utilities/chmod.html
EXTENDED DESCRIPTION
For an octal integer mode operand, the file mode bits shall be set absolutely.
For each bit set in the octal number, the corresponding file permission bit
shown in the following table shall be set; all other file permission bits
shall be cleared. For regular files, for each bit set in the octal number
corresponding to the set-user-ID-on-execution or the
set-group-ID-on-execution, bits shown in the following table shall be set; if
these bits are not set in the octal number, they are cleared. For other file
types, it is implementation-defined whether or not requests to set or clear
the set-user-ID-on-execution or set-group-ID-on-execution bits are honored.
-mike
pgp3naxQzQUx4.pgp
Description: PGP signature