[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#8391: chmod setuid & setguid bits
From: |
Christian |
Subject: |
bug#8391: chmod setuid & setguid bits |
Date: |
Thu, 31 Mar 2011 20:25:28 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.2.14) Gecko/20110221 SUSE/3.1.8 Thunderbird/3.1.8 |
Hi Eric,
Am 31.03.2011 19:29, schrieb Eric Blake:
On 03/31/2011 03:01 AM, Christian wrote:
Why can I only use symbolic modes for clearing ?
----snip chmod(1) ---
and you can set (but not clear) the bits with a numeric mode.
----snip chmod(1) ---
isn't "chmod 0755 DIR" explicit enough ?
Thanks for the report. However, this is not a bug. POSIX states:
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/chmod.html
I did not told it a bug, yet ;)
I agree that having
drwxr-sr-x 2 root root 48 2011-03-31 18:13 tmp/
and doing a "chmod 755"
would have removed the s-gid-bit in the past.
e.g.:
hv-gate:~/test # chmod -v 755 tmp/
Modus von „tmp/“ nach 0755 (rwxr-xr-x) geändert
and I agree that this should not happen.
but:
when I want to remove the s-gid-bit it should be possible to do a
chmod 0755 tmp
and not to be forced to the "same" but more complicated version
chmod g=rx-s tmp
IMHO
for removing s-gid-bit from
drwxr-sr-x 2 root root 48 2011-03-31 18:13 tmp/
"u=rwx,g=rx-s,o=rx" == "0755"
and using "0755" is explicit enough, isn't it ?
Cheers
--
Christian
---------------------------------------------------
Der ultimative shop für Sportbekleidung und Zubehör
http://www.sc24.de
---------------------------------------------------
- bug#8391: chmod setuid & setguid bits, Christian, 2011/03/31
- bug#8391: chmod setuid & setguid bits, Eric Blake, 2011/03/31
- bug#8391: chmod setuid & setguid bits,
Christian <=
- bug#8391: chmod setuid & setguid bits, Eric Blake, 2011/03/31
- bug#8391: chmod setuid & setguid bits, Paul Eggert, 2011/03/31
- bug#8391: chmod setuid & setguid bits, Eric Blake, 2011/03/31
- bug#8391: chmod setuid & setguid bits, Christian, 2011/03/31
- bug#8391: chmod setuid & setguid bits, Eric Blake, 2011/03/31
- bug#8391: chmod setuid & setguid bits, Christian, 2011/03/31
- bug#8391: chmod setuid & setguid bits, Eric Blake, 2011/03/31