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
_______________________________________________ rhelv6-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/rhelv6-list
