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