Bug #2015
sgid on directories isn't working
0%
Description
There are a handful of directories in /srv/repo/main that don't have the sgid bit set, and a whole bunch of files that are :users instead of :repo (not all of which are in the directories without the bit set).
I'm not sure what's causing the sgid bit to be ignored in some cases.
Files
History
Updated by lukeshu over 4 years ago
/srv
is mounted with nosuid
, which inhibits parts of sgid. Turning that off in /etc/fstab
and rebooting...
Updated by lukeshu over 4 years ago
That doesn't seem to have made any difference.
Observation: When I create an SGID directory in my home directory, and create a subdir with in it, the subdir inherits the SGID bit. The same is not true when creating a subdir of an SGID directory in /srv
.
Question: Why am I observing different behavior?
A log of a session demonstrating this behavior is attached. The [NNN]
bit of my PS1
prompt is the exit status (in decimal) of the previous command.
Updated by bill-auger over 4 years ago
i tried it on winston under /etc and the sguid bit is inherited as expected - the only obvious difference it the nodev mount flag - could the underlying virtual disk have such properties on it?
Updated by lukeshu over 4 years ago
The difference wasn't nodev
. It's bsdgroups
!
sudo tune2fs -l /dev/vda4 |grep 'Default mount' Default mount options: bsdgroups user_xattr acl