On Sat, Nov 03, 2007 at 01:14:20PM +0100, Daniel wrote: > ^^^ I can not create the file in /tmp, although I got world write > permissions to it. It seems if I'm in the wheel group and the wheel > group owns the directory, then only the group permissions counts?
Yes, that's the way Unix permissions work, and as far as I know, that's always been the case. Unix doesn't play `nice' tricks. The way permissions work is quite simple: - is your uid the same as the directory/file owner ? -> then only the user permission bits apply. - do you have a gid/supplementary group the same as the directory/file group -> then only the group permission bits apply. - otherwise, you get the other permission bits. Contrary to other systems, you don't *add* permission bits corresponding to various things that may apply to you. You stop at the most distinctive level that applies to you. (I've left stuff like setuid/setgid out of the picture for the sake of clarity)

