How to rename a user in Linux
May 20, 2014
· ctheroux
Ubuntu 11.10
Unix
Ubuntu 11.04
Ubuntu
Linux
Ubuntu 12.04
Ubuntu 14.04
Simply issue this command:
usermod -m -d /home/new-account-name -l new-account-name old-account-name
It creates the home directory if it does not exists. It also copy the stuff of the old user into the new user account.
Copyright 2012–2026, Claude "Tryphon" Théroux
Leave a Comment