Jan 31, 2008
My Digital Life Editorial Team

Change User Name on Linux

User name is utmost important in Linux operating system. Unlike Windows XP and Vista series of consumer oriented OS which sometimes allows single user to automatically log on to desktop without prompting for user name and password, Linux doesn’t come with this convenient (KDE apparently can). Each user must type his or her own user name and password before able to login into shell or desktop.

If you feel that your user name is not attractive enough, or boring or your taste and experience has changed since the user name was first created, use the following command to change the user name in Linux.

usermod -l new login name old login name

Replace new login name with the new user name you want to use in future, and old login name with the existing username to change.

For NIS accounts, additional commands is required to maintain a proper copy of user account across computer network. Run the following commands:

cd /var/yp
make

Related posts:

  1. Change Oracle Database User Password
  2. Open, Extract and Convert DAA, ISO and BIN Files in Linux with Free PowerISO for Linux
  3. Disable Direct Root Login and User Access via SSH to Server
  4. How to Mount USB Disk Drive in UNIX or Linux
  5. Change Group Ownership of Symbolic Links in Unix or Linux

5 Comments

  • useful article thanks ;-)

  • Your posts are the best! Always helpful!

  • Well, it is not kde but rather xdm which is part of the X Windows system. Here is a link that explains the process on a FreeBSD box rather than Linux:
    http://www.freebsd.org/doc/en_US.ISO8859-1/books/

    A really cool trick for this might be useful is if you have a tv card running mythtv. Here is a link on on technique to achieve this on Gentoo Linux:
    http://gentoo-wiki.com/HOWTO_Setup_MythTV#KDM

  • Sorry about the mistake. Article will be changed.

  • Bullshit! You are able to automatically log on to linux desktop without prompting for user name and password. There is KDE settings that you need just modify to enable auto login. At least this is working with KDE desktop and KDM login manager.

    Open control center application > System administration > Login manager (and just change the settings!)

Leave a comment

Notify me of followup comments via e-mail. You can also subscribe without commenting.

Subscribe

Free email subscriptions
Get latest updates in email for free:

Translate This Page