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?

6 of 7 people (86%) answered Yes
Recently 6 of 7 people (86%) answered Yes

Entry

Linux: Log on: User: Operation: Delete: New: How to delete a userid in Linux? [userdel]

Sep 19th, 2003 03:10
Knud van Eeden,


--- Knud van Eeden --- 19 September 2003 - 11:28 am ------------------

Linux: Log on: User: Operation: Delete: New: How to delete a userid in 
Linux?

Steps: Overview:

 1. Open a console

 2. Type the command:

     userdel <username>

    on the command line.

 3. This will:

    1. delete the username <username>

    2. It will *not* remove his directory <username> in the '/home'
       directory.

       You will have to do this manually.

       To remove this directory you can type:

        rm -R dirname/

       or here thus:

        rm -R /home/<username>/

       then answer 'y' to all requests to remove the
       subdirectories.

  4. If you type:

      userdel -r <username>

     then also his directory <username> in the '/home'
     directory will be removed.

---
---

e.g.

 userdel john

---

To remove his directory, you can type:

  rm -R /home/john/

and then answer 'y' to that subdirectories
you want to delete

---
---

To get more information, type:

 man userdel

---

Internet: see also:

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

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