Date: Tue, 25 Aug 1998 00:02:06 -0400 From: Malartre <malartre@aei.ca> To: David Wolfskill <dhw@whistle.com> Cc: freebsd-questions@FreeBSD.ORG, romank@graphnet.com Subject: Re: Group ownership (WHY : or .) Message-ID: <35E2373E.F4757D70@aei.ca> References: <199808241539.IAA18194@pau-amma.whistle.com>
next in thread | previous in thread | raw e-mail | index | archive | help
David Wolfskill wrote: > > >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 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?35E2373E.F4757D70>