Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Aug 1998 07:42:33 -0700 (PDT)
From:      David Wolfskill <dhw@whistle.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Group ownership (WHY : or .)
Message-ID:  <199808251442.HAA22599@pau-amma.whistle.com>
In-Reply-To: <35E2373E.F4757D70@aei.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
>Date: Tue, 25 Aug 1998 00:02:06 -0400
>From: Malartre <malartre@aei.ca>

>David Wolfskill wrote:

>> 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

>I was thinking it was newuser.newgroup and not newuser:newgroup.

A (minor) correction to my earlier note:  either

	chown newuser:newgroup file0 file1 file2 ... fileN
or
	chown newuser.newgroup file0 file1 file2 ... fileN


does, in fact, work.

Before responding, I had checked the man page for chown, which specifies
the "newuser:newgroup" syntax.  Although the "newuser.newgroup" syntax
was one I had used previously (on SunOS systems), I didn't try it, since
the man page specified otherwise.

>Why there is both version?

I suspect that's a question with an answer based in history....

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?199808251442.HAA22599>