Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Mar 2004 20:35:08 -0500 (EST)
From:      Jerry McAllister <jerrymc@clunix.cl.msu.edu>
To:        huuhoa@ioit.ncst.ac.vn (Nguyen Huu Hoa)
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Rename a user
Message-ID:  <200403140135.i2E1Z9P24402@clunix.cl.msu.edu>
In-Reply-To: <20040313041010609.AAA2904@mail.ncst.ac.vn@nhh> from "Nguyen Huu Hoa" at Mar 13, 2004 11:14:12 AM

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> 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?200403140135.i2E1Z9P24402>