From owner-freebsd-stable Thu May 17 19:29: 8 2001 Delivered-To: freebsd-stable@freebsd.org Received: from hobbits.brel.com (hobbits.brel.com [203.127.231.61]) by hub.freebsd.org (Postfix) with ESMTP id A179C37B422 for ; Thu, 17 May 2001 19:29:04 -0700 (PDT) (envelope-from calvinng@hobbits.brel.com) Received: by hobbits.brel.com (Postfix, from userid 1001) id B3EDB3343; Fri, 18 May 2001 10:29:02 +0800 (SGT) Date: Fri, 18 May 2001 10:29:02 +0800 From: Calvin NG To: stable@FreeBSD.ORG Subject: Re: =?iso-8859-1?Q?Changing_User=B4s_Group?= Message-ID: <20010518102902.B95092@brel.com> References: <00fa01c0def5$43f11240$2aa8a8c0@melim.com.br> <007701c0def6$dc9a1360$0f01a8c0@phantom> <015f01c0defa$e38972c0$2aa8a8c0@melim.com.br> <010801c0defb$86f14410$0f01a8c0@phantom> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5i In-Reply-To: <010801c0defb$86f14410$0f01a8c0@phantom>; from freymann@eagle.ca on Thu, May 17, 2001 at 02:02:24PM -0400 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: X-Loop: FreeBSD.ORG Greetings, huh?? how can it be groupmod. I am guessing he wants to change the group of a user, his original command looks correct to me, and would be what I would use. :> > pw usermod _userid_ -g _newgroup_ Are you sure the group of the user did not change?? Did you run the command as root? In fact, I just tried and it works okay: [frodo] # groups nobody nobody [frodo] # pw usermod nobody -g wheel [frodo] # groups nobody wheel [frodo] # pw usermod nobody -g nobody [frodo] # groups nobody nobody Works okay Regards, /calvin lines with :> are quotes from Gerald T. Freymann's email :> > I forgot to say, actually I´m needing to change the primary group :> > in master.passwd file, it´s because we grant some privilegious by :> > the user group, so, I need to chage it in master.passwd file. :> :> Ok, I was thinking you just wanted to change the group on a file.. yes, :> what you want is different. :> :> I believe Chris D. Faulhaber had the answer: :> :> > I´m trying to do it with pw command: :> > pw usermod user -g newgroup :> ^^^^^^^ :> Try groupmod :) :> :> -gf :> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message