Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Mar 1999 09:46:49 -0800
From:      dan@wolf.com
To:        freebsd-questions@freebsd.org
Cc:        FreeBSD-questions@freebsd.org
Subject:   Re: Changing groups
Message-ID:  <19990322094649.A12799@ns.wolf.com>
In-Reply-To: <199903221659.LAA07766@cc942873-a.ewndsr1.nj.home.com>; from Crist J. Clark on Mon, Mar 22, 1999 at 11:59:36AM -0500
References:  <19990322162256.28891.qmail@hotmail.com> <199903221659.LAA07766@cc942873-a.ewndsr1.nj.home.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> > Here's my situation: I want have a user who is a member of three 
> > groups--say they are radio, tv, and newspaper. When the user logs in the 
> > group is set to radio, but then he has to go edit something for radio. 
> > How do I change the user's group from newspaper to radio.
> 
> I'm not sure what you are talking about. When someone is a member of
> three groups, that user is always a member of those three
> groups. There is no need to 'change' groups. If a user wants to change
> which group a specific file/directory is owned by, 'man chgrp.'

I believe he's looking for a FreeBSD equivalent to the 
Solaris "newgrp" command.  That is, when you create a file
that file gets a group ownership assigned.  If you are a 
member of several groups, only one of those groups gets
used to assign group ownership of the files you create. I
believe the question asked was how to get files created
by you to have a different group ownership.

Unfortunately, I can't answer the question.  I don't know 
of a BSD equivalent to newgrp.  

Dan Mahoney 
dan@wolf.com


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?19990322094649.A12799>