Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Mar 2002 21:31:17 -0500
From:      "Miroslav Pendev" <pendev@hotmail.com>
To:        questions@freebsd.org
Subject:   RE: Renaming a user
Message-ID:  <F177IwplWdtaGzW3yZt000008a6@hotmail.com>

next in thread | raw e-mail | index | archive | help

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




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