Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
unable to remove set-group-id bit from directory
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
matja
n00b
n00b


Joined: 19 Jan 2007
Posts: 34

PostPosted: Thu Feb 15, 2007 3:48 pm    Post subject: unable to remove set-group-id bit from directory Reply with quote

I was cleaning up some permissions on a subversion repository today (kernel 2.6.19-gentoo-r5, ext3, ACL support enabled) when I came across a directory which looked a little odd:

drwx--S--- 5 svn svn 4096 2007-02-07 15:35 db

I also notice that the directories underneath it were the same :

drwx--S--- 2 svn svn 4096 2007-02-07 15:35 revprops
drwx--S--- 2 svn svn 4096 2007-02-07 15:35 revs
drwx--S--- 2 svn svn 4096 2007-02-07 15:35 transactions

"Interesting, but no big deal..." I thought, so I chmod 700'd all the directories... and the modes stayed the same.

I had been playing arround with ACL's on the higher-level directory, to give read access for apache and certain other groups, but not this directory. I thought it might be inheriting some ACL or something weird like that, so I removed all ACL's with 'setfacl -b -R' and 'setfacl -b -d -R', stopped svnserve, and did the chmod 700 again... still no change, the directories remain having mode 2700 (rwx--S---)

strace'ing the chmod reveals that the chmod() system call returned with no error, and nothing in dmesg.

Anyone have any clue what could cause this? Filesystem corruption?
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4735
Location: Angra do Heroísmo (PT)

PostPosted: Thu Feb 15, 2007 6:26 pm    Post subject: Reply with quote

Moved from Kernel & Hardware to Networking & Security.

[mod]I feel this thread is more related to security than to kernel or hardware, so I've moved it to k&H.[/mod]
_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum