/etc/passwd
. This may have
sufficed in the old days, but not any more. For starters, much of the
info here is mirrored in /etc/master.passwd
. Further,
the data is also now maintained in a database, which can be updated by
'pwd_mkdb'.
However, you don't really need to know all this, simply use
vipw
any time you wish to change user info. (Use
'man vipw' for more info.)
vipw
to rename the account.mv
to rename the users directory in
/home
.mv
to rename the users mailfile in
/var/mail
./etc/group
.