Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Mar 2004 09:42:34 +0700
From:      "Nguyen Huu Hoa" <huuhoa@ioit.ncst.ac.vn>
To:        <freebsd-questions@freebsd.org>
Subject:   RE: Rename a user
Message-ID:  <20040316024232250.AAA520@mail.ncst.ac.vn@nhh>
In-Reply-To: <200403140135.i2E1Z9P24402@clunix.cl.msu.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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 :)

Hoa, Nguyen

-----Original Message-----
From: Jerry McAllister [mailto:jerrymc@clunix.cl.msu.edu] 
Sent: Sunday, March 14, 2004 8:35 AM
To: Nguyen Huu Hoa
Cc: freebsd-questions@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040316024232250.AAA520>