lkml.org 
[lkml]   [1997]   [May]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Subjectchown irritation
Date
From
Hi all,

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/



\
 
 \ /
  Last update: 2005-03-22 13:39    [W:0.020 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site