How to change your current username on Ubuntu Linux

Beware, this action is VERY dangerous and might ruin some of your running applications, I tried it first on a virtual machine and then my actual machine and it messed up 2 or 3 apps only, I was lucky as these were easy to fix, here we go (Read the instructions below carefully):

usermod -l newname -m -d /home/newname oldname

Please note that you MUST:

  1. be logged out from the user that you will change the “username” for 
  2. and make sure all that user’s applications are closed.

Thanks go to prshah for his post here

About SoCRaT

Systems Engineer, OSS & Linux Geek
This entry was posted in Uncategorized and tagged , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s