faqts : Computers : Operating Systems : Linux

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

27 of 30 people (90%) answered Yes
Recently 10 of 10 people (100%) answered Yes

Entry

Linux: Log on: User: Operation: Change: How to change a userid in Linux? [usermod]

Sep 19th, 2003 06:40
Knud van Eeden,


--- Knud van Eeden --- 19 September 2003 - 02:01 pm ------------------

Linux: Log on: User: Operation: Change: How to change a userid in 
Linux? [usermod]

Steps: Overview:

 1. Open a console

 2. Login as root

    1. Type the command:

        su

    2. Supply your root password

 3. Type the command:

     usermod -l <new username> <old username>

    on the command line.

 4. This will:

    1. change the old username to the new username

---
---

e.g.

 usermod -l john jack

will change the old username 'jack' to the new username 'john'

---
---

To get more information, type:

 man usermod

to get a help page.

---

Type:

 usermod

to see the parameters only.

---

Internet: see also:

How to create a new userid in Linux?
http://www.faqts.com/knowledge_base/view.phtml/aid/24526/fid/107

----------------------------------------------------------------------