From owner-freebsd-questions@FreeBSD.ORG Mon Mar 15 19:03:46 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 17D8016A4CE for ; Mon, 15 Mar 2004 19:03:46 -0800 (PST) Received: from mail2.netnam.vn (smtp.netnam.vn [203.162.7.93]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0B92A43D39 for ; Mon, 15 Mar 2004 19:03:40 -0800 (PST) (envelope-from huuhoa@ioit.ncst.ac.vn) Received: from mail.ncst.ac.vn (mail.ncst.ac.vn [203.160.0.20]) by mail2.netnam.vn (8.12.9/8.12.9) with ESMTP id i2G2cdOj016439 for ; Tue, 16 Mar 2004 09:42:33 +0700 Received: from nhh ([10.10.12.29]) by mail.ncst.ac.vn (Post.Office MTA v3.5.3 release 223 ID# 0-12345L500S10000V35) with ESMTP id vn for ; Tue, 16 Mar 2004 09:42:32 +0700 From: "Nguyen Huu Hoa" To: Date: Tue, 16 Mar 2004 09:42:34 +0700 Organization: Institute of Information Technology MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0 Thread-Index: AcQJZLkYJ6aqrGyAQp+FcWoYvf+tvgBm0xuw In-Reply-To: <200403140135.i2E1Z9P24402@clunix.cl.msu.edu> Message-ID: <20040316024232250.AAA520@mail.ncst.ac.vn@nhh> 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: Tue, 16 Mar 2004 03:03:46 -0000 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