How To Rename Or Change User Name In Linux - Unixmen

Search Tuesday, March 3, 2026 Unixmen Unixmen Unixmen Unixmen Home Frequently Asked Questions How to rename or change user name in Linux Share on Facebook Tweet on Twitter
  • tweet

Question : How  to  rename or  change user name in Linux?

Answer:

killall -u old id old usermod -l new old groupmod -n new old usermod -d /home/new -m new usermod -c “New Real Name” new id new

Example:

kill -u pirat9  #id pirat9 uid=1000(pirat9) gid=1000(pirat9) groups=1000(pirat9),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),109(lpadmin),127(sambashare) # id blanco uid=1001(blanco) gid=1001(blanco) groups=1001(blanco) pirat9@pirat9 ~ $ usermod -l  blanco pirat9 groupmod -n blanco pirat9 usermod -d /home/blanco -m  blanco usermod -c "James Bond" blanco id blanco

Done

Latest Articles

install MySQL

How to Repair MySQL Database in Linux?

Linux HowTo's Janus Atienza - February 18, 2026 0 MySQL database files are prone to corruption and inconsistencies. They can easily get corrupted due to several reasons, such as virus attack on the... SSH to your Linux systems from Android

Uses of Linux: How Individuals and Organizations Use It

Linux HowTo's Janus Atienza - February 10, 2026 0 Ever ask yourself why so many people talk about Linux and why it keeps showing up in phones, offices, and even at home? Linux...

Debian Hosting Is Not Trendy, and That’s Why It Wins

Hosting Janus Atienza - February 4, 2026 0 Hosting based on Debian OS is far from modernized control panels, AI-integration, and all other things new Linux distros are trying to hook you... Unixmen LogoABOUT USUnixmen provide Linux Howtos, Tutorials, Tips & Tricks ,Opensource News. It cover most popular distros like Ubuntu, LinuxMint, Fedora, Centos. It is your Gate to the the world of Linux/Unix and Opensource in General. Privacy Policy Cookie Policy Advertise © Copyright 2020 - Newspaper 6 by TagDiv

Tag » How To Change Username On Linux