LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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-10-2005, 01:09 PM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
Deleting a User


I would like to delete a user from my Linux machine and everything associated with this user including files, profile, data, directories, everything!

I don't want anything lurking around from this user on my machine so I was wondering what would be the best way to go about this?

As far as I know I would need to issue the following command:

Code:
stricom:~# userdel -r
Is this all I will need to do? Will everything be removed from the system?
 
Old 11-10-2005, 01:16 PM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
and have a look in the directory /home/ for an existing user "user"
 
Old 11-10-2005, 01:33 PM   #3
TBC Cosmo
Member
 
Registered: Feb 2004
Location: NY
Distribution: Fedora 10, CentOS 5.4, Debian 5 Sparc64
Posts: 356

Rep: Reputation: 43
That will remove the user and the user's home directory and mail spool, but there may be files owned by that user elsewhere. If the user has already been deleted, find files owned by the uid the user had with:

# find / -user [uid]

then selectively delete OR nuke 'em all with

# find / -user [uid] -exec rm -rf {} \;
 
  


Reply



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
deleting a user joe k Linux - General 3 12-08-2004 06:31 AM
Deleting a user leecming Linux - Newbie 8 06-12-2004 02:17 PM
Deleting a user account from prompt lozz1978 Linux - Newbie 8 01-15-2004 07:43 AM
Deleting a user? WorldBuilder Linux - Software 1 03-28-2003 11:58 AM
removing/deleting a user cuss Linux - General 7 02-27-2003 02:27 PM

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

All times are GMT -5. The time now is 11:39 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