From owner-freebsd-questions Mon Mar 22 13:38:36 1999 Delivered-To: freebsd-questions@freebsd.org Received: from alpha.comkey.com.au (alpha.comkey.com.au [203.9.152.215]) by hub.freebsd.org (Postfix) with SMTP id 555D715255 for ; Mon, 22 Mar 1999 13:38:24 -0800 (PST) (envelope-from gjb@comkey.com.au) Received: (qmail 9894 invoked by uid 1001); 22 Mar 1999 21:24:50 -0000 Message-ID: <19990322212450.9893.qmail@alpha.comkey.com.au> X-Posted-By: GBA-Post 1.04 06-Feb-1999 X-PGP-Fingerprint: 5A91 6942 8CEA 9DAB B95B C249 1CE1 493B 2B5A CE30 Date: Tue, 23 Mar 1999 07:24:50 +1000 From: Greg Black To: "Neil Oosten" Cc: FreeBSD-questions@FreeBSD.ORG Subject: Re: Changing groups References: <19990322162256.28891.qmail@hotmail.com> In-reply-to: <19990322162256.28891.qmail@hotmail.com> of Mon, 22 Mar 1999 11:22:56 EST Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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. The concept of a user's default belongs more to SysV than BSD. Under BSD, the group of a newly-created file is determined by the group of the directory it is created in. To change the group of newly created files in a directory, use chgrp on the directory; to change the group of files already created in a directory, use chgrp on the files (or chgrp -R on the directory if all the descendants of that directory are intended to be affected by the command). -- Greg Black To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message