Date: Mon, 24 Aug 1998 08:39:43 -0700 (PDT) From: David Wolfskill <dhw@whistle.com> To: freebsd-questions@FreeBSD.ORG, romank@graphnet.com Subject: Re: Group ownership Message-ID: <199808241539.IAA18194@pau-amma.whistle.com> In-Reply-To: <35E17DD5.2D348722@graphnet.com>
next in thread | previous in thread | raw e-mail | index | archive | help
>Date: Mon, 24 Aug 1998 10:51:01 -0400 >From: Roman Katsnelson <romank@graphnet.com> >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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199808241539.IAA18194>