Changing the username

Gordon Messmer yinyang at
Thu Apr 20 18:20:33 UTC 2006

Ali Helmy wrote:
> Hey mates,
> How do I change my current user name, without risk of messing up file 
> access and such?

Your access to files is stored by your numeric UID in the filesystem. 
Changing your username shouldn't risk messing up file access.  You will 
need to fix all of your secondary group memberships, if you have any.

You'll probably want to modify the path to your home directory, and 
rename that as well, while you're at it.

More information about the users mailing list