Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 11-21-2002, 04:53 PM   #1
Registered: Feb 2002
Posts: 586

Rep: Reputation: 30
Usedel command doesn't delete user directory?

I create a user using adduser command. After that I delete the user using "userdel" command. The user doesn't exist but the directory for the client still exist. Why is that? ANyone know method to delete a user with directory?

Old 11-21-2002, 04:56 PM   #2
Senior Member
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
If you're that worried about it, you could create a really, really small script that does it since the user's directory is almost always the same as the username... or if there's any chance that you might want to re-instate the user at some point, rather than removing the directory you could simply hide it.

Old 11-22-2002, 12:18 AM   #3
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
userdel -r

-r removes home/user folder

the mail files in /var/spool/mail will remain there


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
cant delete directory linuxmandrake Linux - Newbie 4 08-16-2005 11:14 AM
shell script: delete all directories named directory.# except directory.N brian0918 Programming 3 07-13-2005 06:54 PM
script/command to delete all symlinks from a directory reddazz Linux - General 5 03-15-2005 11:39 PM
Delete directory mfo6463 Linux - Newbie 8 04-20-2004 05:04 PM
How do you delete a directory? R4z0r Linux - Newbie 1 12-25-2002 11:16 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:20 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration