Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Nov 2001 16:07:25 -0600
From:      Mike Meyer <mwm@mired.org>
To:        jaime@snowmoon.com
Cc:        questions@freebsd.org
Subject:   Re: Writable directory except for a given user
Message-ID:  <15353.33437.744317.153424@guru.mired.org>
In-Reply-To: <97636347@toto.iv>

next in thread | previous in thread | raw e-mail | index | archive | help
jaime@snowmoon.com types:
> 	I'm trying to make a directory available to a group of users equal
> to all users _minus_ a given list.  I know that I can use /etc/group and
> chgrp and chmod to allow something to be writable to approved users.
> However, I don't know how to do this as a "blacklist exclusion" approach.
> Unfortunately, I have to allow all users except for a handful to access a
> directory.
> 
> 	Does anyone have a tip for this?

Sure - create a group that you put all users in by default, and then
take blacklisted users out of it.

Note that the obvious solution - of putting blacklisted users in a
group, the giving the directory in question to a group with readable
other permisions and no group permissions - doesn't work. Last time I
checked, it was trivial to take yourself out of a group.

	<mike
--
Mike Meyer <mwm@mired.org>			http://www.mired.org/home/mwm/
Q: How do you make the gods laugh?		A: Tell them your plans.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15353.33437.744317.153424>