From owner-freebsd-questions Mon Aug 24 08:41:11 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA13441 for freebsd-questions-outgoing; Mon, 24 Aug 1998 08:41:11 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from pau-amma.whistle.com (s205m64.whistle.com [207.76.205.64]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA13434 for ; Mon, 24 Aug 1998 08:41:09 -0700 (PDT) (envelope-from dhw@whistle.com) Received: (from dhw@localhost) by pau-amma.whistle.com (8.8.8/8.8.7) id IAA18194; Mon, 24 Aug 1998 08:39:43 -0700 (PDT) (envelope-from dhw) Date: Mon, 24 Aug 1998 08:39:43 -0700 (PDT) From: David Wolfskill Message-Id: <199808241539.IAA18194@pau-amma.whistle.com> To: freebsd-questions@FreeBSD.ORG, romank@graphnet.com Subject: Re: Group ownership In-Reply-To: <35E17DD5.2D348722@graphnet.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >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