From owner-freebsd-questions Mon Jan 20 14:20: 7 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D9DB037B405 for ; Mon, 20 Jan 2003 14:20:05 -0800 (PST) Received: from mail.adelphia.net (pa-plum1b-166.pit.adelphia.net [24.53.161.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id 84BCC43F13 for ; Mon, 20 Jan 2003 14:20:04 -0800 (PST) (envelope-from wmoran@potentialtech.com) Received: from potentialtech.com ([172.16.0.95]) by mail.adelphia.net (8.12.3/8.12.3) with ESMTP id h0KMLDko000787; Mon, 20 Jan 2003 17:21:13 -0500 (EST) (envelope-from wmoran@potentialtech.com) Message-ID: <3E2C75E6.8050809@potentialtech.com> Date: Mon, 20 Jan 2003 17:19:18 -0500 From: Bill Moran User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.1) Gecko/20021127 X-Accept-Language: en-us, en MIME-Version: 1.0 To: talon Cc: freebsd-questions Subject: Re: pw add? References: <3E2C72B2.5020508@datastorm.kicks-ass.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG talon wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi All > > Would someone here be able to tell me how to add > a user to a group using the pw command. > > eg I would like to add myself to the operator group pw usermod username -G operator Should do the trick > Do I have to hand edit the /etc/group file ? You can. The /etc/group file is human readable, and requires no magic when you're done (i.e. it doesn't need compiled or rehashed or anything) so it's pretty easy to edit group memberships that way. I'm sure the pw command is the preferred method, however. -- Bill Moran Potential Technologies http://www.potentialtech.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message