From owner-freebsd-questions Thu Mar 14 18:31:41 2002 Delivered-To: freebsd-questions@freebsd.org Received: from hotmail.com (f177.law11.hotmail.com [64.4.17.177]) by hub.freebsd.org (Postfix) with ESMTP id 0E9D737B417 for ; Thu, 14 Mar 2002 18:31:18 -0800 (PST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 14 Mar 2002 18:31:17 -0800 Received: from 24.153.3.27 by lw11fd.law11.hotmail.msn.com with HTTP; Fri, 15 Mar 2002 02:31:17 GMT X-Originating-IP: [24.153.3.27] From: "Miroslav Pendev" To: questions@freebsd.org Subject: RE: Renaming a user Date: Thu, 14 Mar 2002 21:31:17 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 15 Mar 2002 02:31:17.0816 (UTC) FILETIME=[7C590B80:01C1CBC9] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 1. Edit /etc/master.passwd and change the user name with whatever you need to be the new one 2. In the very same row change the users home dir to the new dir (most likely /user/home/newusername) 3. Rename the old user's home dir to the new one 4.Update users database: as root run pwd_mkdb /etc/master.passwd In this way the user will keep UID and it is not necessary to change to ownership of the new dir. Hope that helps... Miro IT Admin - FreeBSD fan Toronto,Canada _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message