My notes and stuff..
Changing the username in Ubuntu/ Linux
Log in using your username and password (username to be changed)
Set a password for the root. Following will prompt for the new password.
sudo passwd root
Log in using the root account. Give the new password.
If the user account of which the username is to be changed is still in use log out from that.
pkill -KILL -u username
Change the username and the home folder to the new user name.
Change the group name to the new group name that you want.
Can check the group names using this.
Better lock the root account.
Log out from root and log in using the new username
Share to Twitter
Share to Facebook
Share to Pinterest
Post a Comment
Post Comments (Atom)