How to Change the Username of a Linux Account

Techwalla may earn compensation through affiliate links in this story. Learn more about our affiliate and product review process here.

Linux is a multi-user operating system. Each account on the system has a unique username. This is the name the user uses to log in to the system. It is also the name of the user's home directory. Every Linux distribution uses the "usermod" command to modify user accounts. This includes changing the user name for a particular account. The "usermod" command can only be used by the root user. The root user can modify every account that accesses the operating system.


Step 1

Click on the main "Applications" or "Programs" menu.

Video of the Day

Step 2

Click on the "Terminal" or "Konsole" menu option to open a terminal window and access the command prompt.


Step 3

Type the command "su -" to become the root user. Ubuntu and Linux Mint users type "sudo" before the following command.

Step 4

Type the command "usermod -l new_user login" to change the user name for an account. Replace "new_user" with the new username for the account. Replace "login" with the current username for the account.


Step 5

Type the command "exit" to close the root session.

Video of the Day




Report an Issue

screenshot of the current page

Screenshot loading...