Bug#576344: coreutils: [chmod] doesn't remove SUID and SGID bits from directories when using octal numbers

2010-04-03 Thread Joao Eriberto Mota Filho
Package: coreutils Version: 7.4-2 Severity: normal Hi! When I make chmod (2xxx|4xxx|6xxx) over a directory, I can set SUID and SGID bits. However, if I use 0xxx, the SUID and SGID bits aren't removed. But it can be removed if using u-s and/or g-s. So I think it is a chmod bug and not a kernel

Bug#576344: coreutils: [chmod] doesn't remove SUID and SGID bits from directories when using octal numbers

2010-04-03 Thread Bob Proulx
Joao Eriberto Mota Filho wrote: When I make chmod (2xxx|4xxx|6xxx) over a directory, I can set SUID and SGID bits. However, if I use 0xxx, the SUID and SGID bits aren't removed. But it can be removed if using u-s and/or g-s. So I think it is a chmod bug and not a kernel bug. This is

Bug#576344: coreutils: [chmod] doesn't remove SUID and SGID bits from directories when using octal numbers

2010-04-03 Thread Bob Proulx
Oh, for the archive I should also point out that this is also documented in the info pages. I will include a direct link to the documentation node. Bob $ info coreutils 'Directory Setuid and Setgid' 26.4 Directories and the Set-User-ID and Set-Group-ID Bits