[Bug 623036] Re: Can't unset S_ISUID, S_ISGID once set on a directory
Robert C. Sheets
rcsheets at acm.org
Fri Feb 10 14:02:56 UTC 2012
It seems this is not actually considered a bug, but is an intentional
change to coreutils. See debian bug #604625 for an explanation.
I was simply confused and should have RTFM'd.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to coreutils in Ubuntu.
https://bugs.launchpad.net/bugs/623036
Title:
Can't unset S_ISUID, S_ISGID once set on a directory
Status in “coreutils” package in Ubuntu:
Invalid
Status in “coreutils” package in Debian:
Fix Released
Bug description:
Binary package hint: coreutils
I have tested this on both ext2 and ext4 file systems, but no others.
I see the following behavior:
rcsheets at privateer:~$ mkdir coreutils-bug
rcsheets at privateer:~$ ls -ld coreutils-bug
drwxr-xr-x 2 rcsheets rcsheets 4096 2010-08-23 14:49 coreutils-bug
rcsheets at privateer:~$ chmod 7755 coreutils-bug
rcsheets at privateer:~$ ls -ld coreutils-bug
drwsr-sr-t 2 rcsheets rcsheets 4096 2010-08-23 14:49 coreutils-bug
rcsheets at privateer:~$ chmod 0755 coreutils-bug
rcsheets at privateer:~$ ls -ld coreutils-bug/
drwsr-sr-x 2 rcsheets rcsheets 4096 2010-08-23 14:49 coreutils-bug/
I would expect the final permissions string to be drwxr-xr-x instead
of having the setuid and setgid bits set. So it seems that while
S_ISVTX is cleared, S_ISUID and S_ISGID cannot be cleared once they
are set.
My Ubuntu version is as follows:
Description: Ubuntu 10.04.1 LTS
Release: 10.04
And I am using this version of coreutils:
coreutils:
Installed: 7.4-2ubuntu2
Candidate: 7.4-2ubuntu2
Version table:
*** 7.4-2ubuntu2 0
500 http://us.archive.ubuntu.com/ubuntu/ lucid/main Packages
100 /var/lib/dpkg/status
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/623036/+subscriptions
More information about the foundations-bugs
mailing list