LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-10-2004, 09:17 AM   #1
Debra_Dixon
LQ Newbie
 
Registered: Aug 2004
Location: Virginia
Posts: 5

Rep: Reputation: 0
Unhappy deleting users -error


I was cleaning up the user base and I forgot the -r. How do I get rid of the home directories for those deleted users? Help please....
 
Old 08-10-2004, 09:24 AM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,569

Rep: Reputation: 89
Re: deleting users -error

Quote:
Originally posted by Debra_Dixon
I was cleaning up the user base and I forgot the -r. How do I get rid of the home directories for those deleted users? Help please....
Well since the user no longer exists on the system a simple rm -rf /home/user_to_be_deleted as root will remove the leftover directory.
 
Old 08-10-2004, 09:44 AM   #3
Debra_Dixon
LQ Newbie
 
Registered: Aug 2004
Location: Virginia
Posts: 5

Original Poster
Rep: Reputation: 0
I must be mistyping..
rm -rf/home/username
Is this correct?
 
Old 08-10-2004, 09:44 AM   #4
Debra_Dixon
LQ Newbie
 
Registered: Aug 2004
Location: Virginia
Posts: 5

Original Poster
Rep: Reputation: 0
I must be mistyping..
rm -rf/home/username
Is this correct?
 
Old 08-10-2004, 09:56 AM   #5
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,569

Rep: Reputation: 89
Quote:
Originally posted by Debra_Dixon
I must be mistyping..
rm -rf/home/username
Is this correct?
rm a_space -rf a_space /home/username with /home/username being changed to the directory of the user you want to delete.
 
Old 08-10-2004, 09:59 AM   #6
Debra_Dixon
LQ Newbie
 
Registered: Aug 2004
Location: Virginia
Posts: 5

Original Poster
Rep: Reputation: 0
Fabulous. Thanks for the help.
 
Old 08-10-2004, 10:27 AM   #7
Debra_Dixon
LQ Newbie
 
Registered: Aug 2004
Location: Virginia
Posts: 5

Original Poster
Rep: Reputation: 0
Somehow I have managed to delete everyones home folder. Can I get them back? How can I see a list of users?
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
deleting users from mysql jsheffie Linux - Software 4 10-18-2005 09:29 PM
error while deleting coal-fire-ice Solaris / OpenSolaris 2 07-28-2005 04:46 AM
manually deleting users nukeu666 Linux - General 5 08-14-2004 07:32 AM
Running linux after deleting all users... arinlinux Linux - Newbie 3 06-17-2004 09:00 AM
deleting root users lxandrthegr8 Linux - General 3 09-06-2003 12:29 PM


All times are GMT -5. The time now is 11:31 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration