From owner-freebsd-questions@FreeBSD.ORG Sat Mar 13 17:35:15 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 40E8316A4CE for ; Sat, 13 Mar 2004 17:35:15 -0800 (PST) Received: from clunix.cl.msu.edu (clunix.cl.msu.edu [35.9.2.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id ACA1E43D2D for ; Sat, 13 Mar 2004 17:35:14 -0800 (PST) (envelope-from jerrymc@clunix.cl.msu.edu) Received: (from jerrymc@localhost) by clunix.cl.msu.edu (8.11.7p1+Sun/8.11.7) id i2E1Z9P24402; Sat, 13 Mar 2004 20:35:09 -0500 (EST) From: Jerry McAllister Message-Id: <200403140135.i2E1Z9P24402@clunix.cl.msu.edu> To: huuhoa@ioit.ncst.ac.vn (Nguyen Huu Hoa) Date: Sat, 13 Mar 2004 20:35:08 -0500 (EST) In-Reply-To: <20040313041010609.AAA2904@mail.ncst.ac.vn@nhh> from "Nguyen Huu Hoa" at Mar 13, 2004 11:14:12 AM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: Rename a user X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Mar 2004 01:35:15 -0000 > > 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