From owner-freebsd-questions Mon Mar 22 13:38:37 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 5B5D315263 for ; Mon, 22 Mar 1999 13:38:24 -0800 (PST) (envelope-from gjb@comkey.com.au) Received: (qmail 9772 invoked by uid 1001); 22 Mar 1999 21:17:20 -0000 Message-ID: <19990322211720.9771.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:17:20 +1000 From: Greg Black To: Christopher Michaels Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Changing groups References: <6C37EE640B78D2118D2F00A0C90FCB441A5FAF@site2s1> In-reply-to: <6C37EE640B78D2118D2F00A0C90FCB441A5FAF@site2s1> of Mon, 22 Mar 1999 13:31:19 EST Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Are we talking to permanently change the default GID of new files, or are we > talking on a per file basis? > - To permanently change the default group needed, you would have to edit > the password file and change that users group (vipw). This is BSD, not SysV. On BSD systems, the group of a newly created file is always taken from the group of the directory in which it is located. To change the group of files created in a directory, use chgrp on the directory. And, since this is BSD, you can always read any files with group read permissions for any group you belong to without doing anything special. Under SysV (at least until SysVr3 -- I haven't touched it since then), you could only be one group at a time and had to use the newgroup command to switch to another group. -- Greg Black To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message