From owner-freebsd-questions Mon Aug 24 21:03:13 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA26333 for freebsd-questions-outgoing; Mon, 24 Aug 1998 21:03:13 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from gamma.aei.ca (gamma.aei.ca [206.123.6.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA26328 for ; Mon, 24 Aug 1998 21:03:11 -0700 (PDT) (envelope-from malartre@aei.ca) Received: from aei.ca (aeiusrF-07.aei.ca [206.186.205.7]) by gamma.aei.ca (8.8.5/8.8.5) with ESMTP id AAA24722; Tue, 25 Aug 1998 00:02:12 -0400 (EDT) Message-ID: <35E2373E.F4757D70@aei.ca> Date: Tue, 25 Aug 1998 00:02:06 -0400 From: Malartre X-Mailer: Mozilla 4.06 [en] (X11; I; FreeBSD 2.2.7-RELEASE i386) MIME-Version: 1.0 To: David Wolfskill CC: freebsd-questions@FreeBSD.ORG, romank@graphnet.com Subject: Re: Group ownership (WHY : or .) References: <199808241539.IAA18194@pau-amma.whistle.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG David Wolfskill wrote: > > >Date: Mon, 24 Aug 1998 10:51:01 -0400 > >From: Roman Katsnelson > > >I am writing a shell script to automate some procedures. I want this > >shell to be executable by root only. > > >One of the things it needs to do is create some directories. But I don't > >want these directories to be owned by root/wheel. While I can do chown > >whatever I want, I don't know how to change the fact that it's owned by > >group wheel. > > Either use "chgrp" to change the group (which is portable across > UNIX-like implementations) or use the "user:group" notation as the first > argument to "chown", such as > > chown newuser:newgroup file0 file1 file2 ... fileN > > david > -- > David Wolfskill UNIX System Administrator > dhw@whistle.com voice: (650) 577-7158 pager: (650) 371-4621 > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message I was thinking it was newuser.newgroup and not newuser:newgroup. Why there is both version? -- [Malartre][malartre@aei.ca][http://www.aei.ca/~malartre/] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message