Subject: protection bits
To: None <tech-kern@NetBSD.ORG>
From: Jukka Marin <jmarin@pyy.jmp.fi>
List: tech-kern
Date: 02/11/1998 13:41:25
1. Create a directory owned by user1, group1
2. chmod 705 <directory>
3. su - user2 (where user2 belongs to group1)
4. try to access <directory>
5. su - user3 (where user3 does NOT belong to group1)
6. try to access <directory>
4. gives "permission denied" on NetBSD (1.2, at least) but not on linux.
On NetBSD, if you belong to a group that owns the directory with no group
access, your access is denied even though access is granted for "others".
Is this a bug or a feature? I like the way it works on NetBSD and I hope
it doesn't change. ;-) This will let me keep the users out of each other's
home directories even though the WWW server (which doesn't belong the user
group) can still access the files.
(Well, I still wish we had ACL's.. but that's a different story.)
-jm
--
1503 kHz @ 21:30 EET DST Mon-Fri
---> http://www.jmp.fi/~jmarin/ <---