Is there a reason why whenever I chown a directory with the SGID bit set, it
gets reset for me? The problem did not occur with older (1.2) kernels.
Demo:
[root@computer test]# ls -ld
drwxrwsr-x 2 user1 group 1024 May 16 17:29 .
[root@computer test]# chown user2 .
[root@computer test]# ls -ld
drwxrwxr-x 2 user2 group 1024 May 16 17:29 .
I am aware of why this is the correct behaviour for executables, but SGID
means something completely different for a directory.
Thanks,
-- Geoffrey D. Bennett (geoffrey@netcraft.com.au) Computer Systems Manager, NetCraft Australia http://www.netcraft.com.au/geoffrey/ Red Hat Linux Resellers: http://www.netcraft.com.au/redhat/