From owner-freebsd-questions Mon Mar 22 9:45:52 1999 Delivered-To: freebsd-questions@freebsd.org Received: from wolf.com (ns1.wolf.com [207.137.58.20]) by hub.freebsd.org (Postfix) with ESMTP id 823BC1556E; Mon, 22 Mar 1999 09:45:45 -0800 (PST) (envelope-from dan@wolf.com) Received: (from dan@localhost) by wolf.com (8.9.1/8.9.1) id JAA13181; Mon, 22 Mar 1999 09:46:50 -0800 Message-ID: <19990322094649.A12799@ns.wolf.com> 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 References: <19990322162256.28891.qmail@hotmail.com> <199903221659.LAA07766@cc942873-a.ewndsr1.nj.home.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2 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 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > 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