How To Change The Username Of A Linux Account - Techwalla

Get the latest news and alerts! Later Notify
  1. Tech Support
  2. How To
How to Change the Username of a Linux Account By Kristen Waters Fact Checked 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.

Advertisement

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.

Advertisement

We Recommend

Tech Support How to Find UID and GID By Kristen Waters Tech Support How to Get to Root in Linux Mint? By Chris Hoffman Tech Support How to Find a Domain Admin Password By Jim Campbell

Step 3

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

We Recommend

Tech Support How to Find UID and GID By Kristen Waters Tech Support How to Get to Root in Linux Mint? By Chris Hoffman Tech Support How to Find a Domain Admin Password By Jim Campbell

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.

Advertisement

Step 5

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

Video of the Day

Advertisement

Advertisement

references
  • Die: usermod(8) - Linux Man Page
Techwalla may earn compensation through affiliate links in this story. Learn more about our affiliate and product review process here.

People are Reading

1
How to Set the PATH in Ubuntu
2
How to Access Shoreware Director
3
How to Switch Users in a Linux Shell

You May Also Like

1
How to Delete a Garena Account
2
How to Delete a User from My Computer
3
How to View Linux Login History

Tag » How To Change Username On Linux