[rhelv6-list] found a chmod bug in rhel 6.0
Paul Krizak
paul.krizak at amd.com
Thu Mar 24 17:25:25 UTC 2011
I've reproduced this behavior on my RHEL6 test box. I'm going to open an
issue with our TAM.
Paul Krizak 7171 Southwest Pkwy MS B200.3A
MTS Systems Engineer Austin, TX 78735
Advanced Micro Devices Desk: (512) 602-8775
Linux/Unix Systems Engineering Cell: (512) 791-0686
Global IT Infrastructure Fax: (512) 602-0468
On 03/24/2011 10:11 AM, Kyle O'Donnell wrote:
> I think I found a bug with chmod, but I could just be misinformed...
>
> It looks like the numerical permission syntax for setuid/setgid can only
> be unset with the alphabetical syntax on directories.
>
> 755 permission set on at directory
> # ls -lad at
> drwxr-xr-x 2 root root 4096 Mar 24 11:35 at
>
> add setgid
> # chmod 2755 at
> # ls -lad at
> drwxr-sr-x 2 root root 4096 Mar 24 11:35 at
>
> attempt to remove setgid
> # chmod 0755 at
> # ls -lad at
> drwxr-sr-x 2 root root 4096 Mar 24 11:35 at
> didnt work
>
> another attempt to remove setgid
> # chmod 755 at
> # ls -lad at
> drwxr-sr-x 2 root root 4096 Mar 24 11:35 at
> also didn't work
>
> and one more
> # chmod g-s at
> # ls -lad at
> drwxr-xr-x 2 root root 4096 Mar 24 11:35 at
> success
>
> This doesn't appear to affect files only directories.
>
>
> --kyleo
More information about the rhelv6-list
mailing list