On Sat, 3 Nov 2007, Daniel wrote:
> Hi!
Evidently, the permission check moves left to right, so to speak.
Case1, can you do it as user (root)? No. Can you do it as group
(wheel)? You're not in group wheel, ignore group permissions. Can
you do it as other? Yes. (with the added features of the sticky
(man 8 sticky) bit.)
Case 2, you're denied by the group permissions. Evidently creat
or stat or whatever bails out at this point.
The permissions 1703 (rwx----wt) *do* state that group wheel should
have no access to /tmp.
So this looks like "expected operation". 1703 is a fairly weird
set of permissions, giving "other" more privilege than the group.
This might be useful, though, if you wanted a directory from
which members of group "leper" were excluded.
Are SysV, Posix, Linux and Old BSD semantics all the same here?
(I dunno).
Use 1777 and be happy.
Oh -- don't think of it as "world". The proper term is "other".
You've given an example where that is relevant. (user-group-other).
If you're "user" or "group", you're not an "other".
Dave
--
You don't have to like businessmen to like capitalism.
| Christoph Lameter | Re: [RFC 00/15] x86_64: Optimize percpu accesses |
| Linus Torvalds | Re: [Patch v2] Make PCI extended config space (MMCONFIG) a driver opt-in |
| Greg Kroah-Hartman | [PATCH 005/196] Chinese: add translation of SubmittingDrivers |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
git: | |
| David Miller | [GIT]: Networking |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Christoph Hellwig | Re: [PATCH 06/32] IGET: Mark iget() and read_inode() as being obsolete [try #2] |
| Gerrit Renker | [PATCH 26/37] dccp: Integration of dynamic feature activation - part 1 (socket set... |
