From owner-freebsd-stable Fri May 18 4:21:44 2001 Delivered-To: freebsd-stable@freebsd.org Received: from salseiros.melim.com.br (salseiros.melim.com.br [200.215.110.23]) by hub.freebsd.org (Postfix) with ESMTP id 7A44237B422 for ; Fri, 18 May 2001 04:21:40 -0700 (PDT) (envelope-from ronan@melim.com.br) Received: from fazendinha (ressacada.melim.com.br [200.215.110.4]) by salseiros.melim.com.br (8.11.3/8.11.3) with SMTP id f4IBKur36872 for ; Fri, 18 May 2001 08:20:57 -0300 (BRT) (envelope-from ronan@melim.com.br) Message-ID: <02ae01c0df8c$b70a60a0$2aa8a8c0@melim.com.br> From: "Ronan Lucio" To: References: <00fa01c0def5$43f11240$2aa8a8c0@melim.com.br> <007701c0def6$dc9a1360$0f01a8c0@phantom> <015f01c0defa$e38972c0$2aa8a8c0@melim.com.br> <010801c0defb$86f14410$0f01a8c0@phantom> <20010518102902.B95092@brel.com> Subject: =?iso-8859-1?Q?Re:_Changing_User=B4s_Group?= Date: Fri, 18 May 2001 08:21:42 -0300 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: X-Loop: FreeBSD.ORG Hi all, Now, I tried pw command in another machine and it worked fine. Thanks a lot to everyone by the help. Ronan Lucio > 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 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message