[TriLUG] Users and groups

Mike Broome mbroome at employees.org
Thu Mar 14 11:39:19 EST 2002


On Thu, Mar 14, 2002 at 11:11:35AM -0500, Paul D. Boyle wrote:
> One thing I have done on Redhat is to keep the User Private Group scheme,
> but then create common groups (e.g. a 'develop' group for people who
> write programs) where they have access to a common subdirectory, say,
> /usr/local/develop (which is owned by that group) where development work
> is carried out.  You could set this up on per project basis, and users
> could be members of multiple secondary groups in addition to their primary
> "private group".

I have gone this same route to handle common groups with my RH linux
install.  One thing I've found -- and I think is more endemic to the
Unix group system than to RH's user private group scheme in specific --
is that for a common directory like /usr/local/develop, you have to set
the setgid bit on the directory (chmod g+s /usr/local/develop) in
addition to setting the group on the directory if you want files that
are created in that directory to have the same group permissions as the
directory rather than the primary group of the user creating the file.

Mike

-- 
Mike Broome
mbroome(at)employees.org



More information about the TriLUG mailing list