Unix permission coexistence with posix acl

Ben Walton bdwalton-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Fri Feb 1 14:47:54 UTC 2013


On Fri, Feb 1, 2013 at 2:42 PM, William Muriithi
<william.muriithi-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org> wrote:
>
>>
>> setgid on a directory forced anything created to inherit the group.
>> There is no way to do the same for owner of the file.  Whoever creates
>> it, owns it.  FreeBSD allows setuid on directories to do the same thing
>> to owner of the file, but linux and other unix systems do not.
>
> Thank Len.  Understand now. How does FreeBSD achieve the purpose that Linux
> use setuid for? Running binaries like passwd  for example?
>
> Just got curious.
>
>> There is no 'default user' concept in posix acl or unix acl (except
>> on freebsd).


FreeBSD has setuid for files too, just like Linux.  What Len is saying
is that in FreeBSD, you can setuid a directory and all files created
in that directory will have the owner of the directory, not the owner
of the process creating the file.

Note that the setuid bit would not be inherited as that would be a
huge security hole. :)

Thanks
-Ben


--
---------------------------------------------------------------------------------------------------------------------------
Take the risk of thinking for yourself.  Much more happiness,
truth, beauty and wisdom will come to you that way.

-Christopher Hitchens
---------------------------------------------------------------------------------------------------------------------------
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list