Hi! Case 1: $ id uid=1000(leva) gid=1000(leva) groups=1000(leva) $ ls -ld /tmp/ drwx----wt 4 root wheel 512 Nov 3 13:05:03 2007 /tmp// $ touch /tmp/test && ls -l /tmp/test -rw-r----- 1 leva wheel 0 Nov 3 13:09:04 2007 /tmp/test $ rm /tmp/test && ls -l /tmp/test ls: /tmp/test: No such file or directory
I can create and remove files in and from the /tmp directory. This is the expected behaviour (at least for me). Case 2 (I've added myself to the wheel group): $ id uid=1000(leva) gid=1000(leva) groups=1000(leva), 0(wheel) $ ls -ld /tmp/ drwx----wt 4 root wheel 512 Nov 3 13:05:03 2007 /tmp// $ touch /tmp/test touch: /tmp/test: Permission denied ^^^ 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? (sounds lame, but I can not think of other reasons). After changing the /tmp directory's group permissions to -wx, I can create and remove files from it while I'm in the wheel group. What could cause this behaviuour? Thanks! Daniel