[vox-tech] Can a username be changed?

Shawn P. Neugebauer vox-tech@lists.lugod.org
Sun, 9 Feb 2003 13:47:04 -0800


On Sunday 09 February 2003 01:44 pm, Jeff Newmiller wrote:
> On Sun, 9 Feb 2003, Bill Kendrick wrote:
> > Is there a way to change a user's login name under Unix?
>
> such a question... ;)
>
> > Is it safe enough to simply rename their home directory and
> > edit their entry in /etc/passwd and /etc/shadow?
>
> Safe enough, because security is managed by UID through those files, but
> maybe not quite complete enough.
>
> I would also make sure to rename their mail spool file, and do a
> find /etc -type f | xargs grep oldusername
> to find places like the sudo configuration files that might reference
> their usernames.  Other applications like "mysql" or "samba" might also
> maintain parallel configurations for that username.

aah, yes, excellent suggestions.

shawn.