• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 181
  • Last Modified:

Changing login user name

I want to change my login name.  I have Mandrake-Linux.  Can
I use 'usermod' to change it, or is there a better safer root?
1 Solution
This should be VERY easy.

Just crack open /etc/passwd and change the line that is your username. for example if your username was nick and you wanted to change it to joe you would find the line that looks like this


And change it to look like this.


You could do this with vi or any text editor if you had root permission. Remember that file permissions are number based, so all of you file permissions will change to the new user name.

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now