Rename a user

Jerry McAllister jerrymc at clunix.cl.msu.edu
Mon Mar 15 19:08:17 PST 2004


> 
> Thanks to all,
> I have managed to do it :)
> In my system, don't know why the root user disappear only toor exists, so I
> must rename toor to root :)

Well, don't get rid of toor.   Just copy the line and put it in 
front (above) toor and make that one root.   You probably want to 
have one that says root and that has its password field '*-ed out.'

Make sure you use vipw and you should not have any problems.

////jerry

> 
> Hoa, Nguyen
> 
> -----Original Message-----
> From: Jerry McAllister [mailto:jerrymc at clunix.cl.msu.edu] 
> Sent: Sunday, March 14, 2004 8:35 AM
> To: Nguyen Huu Hoa
> Cc: freebsd-questions at freebsd.org
> Subject: Re: Rename a user
> 
> > 
> > Hi List,
> > How can I rename a user from my BSD 5.2 system. I have a user called
> "hoa",
> > then I want to rename it to "nguyen", so what should I do?
> 
> Just make yourself root (su)
> then do  'vipw'  and edit the Userid name in the hao record.
> 
> When you get out of vipw (:wq, just like in vi) it also updated
> the database properly.
> 
> Of course, if there are scripts somewhere that have the hao name
> hardcoded in to them, those will have to be fixed by hand.
> 
> ////jerry
> 
> > Thanks
> > Hoa, Nguyen
> 
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
> 



More information about the freebsd-questions mailing list