wow that is an annoying change!  <br><br>is there a list somewhere with ALL of these annoying changes in one place?  so far the uname -r and now the chmod<br><br><br><br><div class="gmail_quote">On Thu, Mar 24, 2011 at 1:32 PM, Paul Krizak <span dir="ltr"><<a href="mailto:paul.krizak@amd.com">paul.krizak@amd.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">But this is a behavior change from RHEL5:<br>
<br>
[root@svvadm01 tmp]# cat /etc/redhat-release<br>
Red Hat Enterprise Linux Client release 5.4 (Tikanga)<br>
<br>
[root@svvadm01 tmp]# mkdir foo<br>
[root@svvadm01 tmp]# ls -lad foo<br>
drwxr-xr-x 2 root root 4096 Mar 24 10:31 foo<br>
<br>
[root@svvadm01 tmp]# chmod 2755 foo<br>
[root@svvadm01 tmp]# ls -lad foo<br>
drwxr-sr-x 2 root root 4096 Mar 24 10:31 foo<br>
<br>
[root@svvadm01 tmp]# chmod 0755 foo<br>
[root@svvadm01 tmp]# ls -lad foo<br>
drwxr-xr-x 2 root root 4096 Mar 24 10:31 foo<br>
<br>
And I don't know of a good reason for the behavior change.<div class="im"><br>
<br>
Paul Krizak                         7171 Southwest Pkwy MS B200.3A<br>
MTS Systems Engineer                Austin, TX  78735<br>
Advanced Micro Devices              Desk:  <a href="tel:%28512%29%20602-8775" target="_blank">(512) 602-8775</a><br>
Linux/Unix Systems Engineering      Cell:  <a href="tel:%28512%29%20791-0686" target="_blank">(512) 791-0686</a><br>
Global IT Infrastructure            Fax:   <a href="tel:%28512%29%20602-0468" target="_blank">(512) 602-0468</a><br>
<br></div><div><div></div><div class="h5">
On 03/24/2011 10:27 AM, Kinzel, David wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Man pages says as much:<br>
<br>
<br>
        chmod preserves a directory's set-user-ID and set-group-ID bits<br>
unless you explicitly specify  other-<br>
        wise.   You  can set or clear the bits with symbolic modes like<br>
u+s and g-s, and you can set (but not<br>
        clear) the bits with a numeric mode.<br>
<br>
<br>
        From: <a href="mailto:rhelv6-list-bounces@redhat.com" target="_blank">rhelv6-list-bounces@redhat.com</a><br>
[mailto:<a href="mailto:rhelv6-list-bounces@redhat.com" target="_blank">rhelv6-list-bounces@redhat.com</a>] On Behalf Of Kyle O'Donnell<br>
        Sent: Thursday, March 24, 2011 11:11 AM<br>
        To: <a href="mailto:rhelv6-list@redhat.com" target="_blank">rhelv6-list@redhat.com</a><br>
        Subject: [rhelv6-list] found a chmod bug in rhel 6.0<br>
        <br>
        <br>
        I think I found a bug with chmod, but I could just be<br>
misinformed...<br>
        <br>
        It looks like the numerical permission syntax for setuid/setgid<br>
can only be unset with the alphabetical syntax on directories.<br>
        <br>
        755 permission set on at directory<br>
        # ls -lad at<br>
        drwxr-xr-x 2 root root 4096 Mar 24 11:35 at<br>
        <br>
        add setgid<br>
        # chmod 2755 at<br>
        # ls -lad at<br>
        drwxr-sr-x 2 root root 4096 Mar 24 11:35 at<br>
        <br>
        attempt to remove setgid<br>
        # chmod 0755 at<br>
        # ls -lad at<br>
        drwxr-sr-x 2 root root 4096 Mar 24 11:35 at<br>
        didnt work<br>
        <br>
        another attempt to remove setgid<br>
        # chmod 755 at<br>
        # ls -lad at<br>
        drwxr-sr-x 2 root root 4096 Mar 24 11:35 at<br>
        also didn't work<br>
        <br>
        and one more<br>
        # chmod g-s at<br>
        # ls -lad at<br>
        drwxr-xr-x 2 root root 4096 Mar 24 11:35 at<br>
        success<br>
        <br>
        This doesn't appear to affect files only directories.<br>
        <br>
        <br>
        --kyleo<br>
        <br>
<br>
<br>
This email communication and any files transmitted with it may contain confidential and or proprietary information and is provided for the use of the intended recipient only.  Any review, retransmission or dissemination of this information by anyone other than the intended recipient is prohibited.  If you receive this email in error, please contact the sender and delete this communication and any copies immediately.  Thank you.<br>

<a href="http://www.encana.com" target="_blank">http://www.encana.com</a><br>
<br>
<br>
_______________________________________________<br>
rhelv6-list mailing list<br>
<a href="mailto:rhelv6-list@redhat.com" target="_blank">rhelv6-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/rhelv6-list" target="_blank">https://www.redhat.com/mailman/listinfo/rhelv6-list</a><br>
<br>
</blockquote>
<br>
_______________________________________________<br>
rhelv6-list mailing list<br>
<a href="mailto:rhelv6-list@redhat.com" target="_blank">rhelv6-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/rhelv6-list" target="_blank">https://www.redhat.com/mailman/listinfo/rhelv6-list</a><br>
</div></div></blockquote></div><br>