Subject: Re: bug#8391: chmod setuid & setguid bits

From: Eric Blake <[email-masked]>
Date: Thu, 31 Mar 2011 12:59:19 -0600

On 03/31/2011 12:25 PM, Christian wrote:
> 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 ?

No, because not everyone realizes that chmod takes octal automatically,
and they might have intended the leading 0 to mean octal without
actually affecting 07000.

But perhaps "00755" is explicit enough.  I think this has been discussed
on the list in the distant past, although I don't have time to dig up
references right now.

-- 
Eric Blake   [email-masked]    +1-801-349-2682
Libvirt virtualization library http://libvirt.org