• 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?
0
rnorman011700
Asked:
rnorman011700
1 Solution
 
redhat2Commented:
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

nick:*:1000:1000:Nick,,,:/home/nick:/bin/bash

And change it to look like this.

joe:*:1000:1000:Nick,,,:/home/nick:/bin/bash

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.
0

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