Re: /tmp permissions, I don't get this...

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: OpenBSD misc <misc@...>
Date: Saturday, November 3, 2007 - 10:54 am

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.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
/tmp permissions, I don't get this..., Daniel, (Sat Nov 3, 8:14 am)
Re: /tmp permissions, I don't get this..., Woodchuck, (Sat Nov 3, 10:54 am)
Re: /tmp permissions, I don't get this..., Marc Espie, (Sat Nov 3, 10:13 am)
Re: /tmp permissions, I don't get this..., Daniel, (Sat Nov 3, 10:47 am)
Re: /tmp permissions, I don't get this..., Antoine Jacoutot, (Sat Nov 3, 9:12 am)
Re: /tmp permissions, I don't get this..., Daniel, (Sat Nov 3, 10:08 am)