Trying to change the name of a user.
Hello,
I am very new to linux, so bare with me here. I am doing an assignment for a college class (Linux), one of the questions is to change the name of a user to something else. I know that I have to be the root user, and that it is something to do with usermod -l (I think). I've been stuck on this question for about an hour, so any help would be appreciated. I am using Fedora 12 if that helps. |
What is it about usermod's -l/--login option that you do not understand?
|
Quote:
For example if I wanted to change my account name from "luke" to "darth" What would the command look like? |
Google Linux change username and you get countless sites with examples as the one below:
http://www.cyberciti.biz/faq/howto-c...-user-name-id/ |
If you need more information about a command you can always have a look at the respective man-page, in your case the command would be
Code:
man usermod |
#usermod -l <newlogin> <oldlogin>
Ex: # usermod -l james john Where john is the old login and james is the new login id. Code:
$ man usermod Hope that gives you an idea |
All times are GMT -5. The time now is 07:39 AM. |