Date: Fri, 18 May 2001 08:21:42 -0300 From: "Ronan Lucio" <ronan@melim.com.br> To: <stable@freebsd.org> Subject: =?iso-8859-1?Q?Re:_Changing_User=B4s_Group?= Message-ID: <02ae01c0df8c$b70a60a0$2aa8a8c0@melim.com.br> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?02ae01c0df8c$b70a60a0$2aa8a8c0>