LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 11-21-2002, 04:53 PM   #1
mikeshn
Member
 
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?

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

Rep: Reputation: 63
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.

HTH
 
Old 11-22-2002, 12:18 AM   #3
DavidPhillips
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
 
  


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:12 PM.

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