LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-25-2012, 03:13 PM   #1
fatalerror0x00
Member
 
Registered: Oct 2012
Location: Holden, ME, USA
Distribution: SlackWare64 14.00
Posts: 185

Rep: Reputation: 0
Deleting users and there files and directories


I wish to delete a user which I know how to do but what I don't know how to go about doing properly (system-wide) is deleting there files and driectories owned by them so it was like they never existed as this user is gonna be just a test and so I don't want the clutter it's gonna create while I test with this user. Any tips are helpful along with scripts are welcome.
 
Old 11-25-2012, 04:26 PM   #2
deswarf
LQ Newbie
 
Registered: Jan 2012
Posts: 26

Rep: Reputation: Disabled
How about
Code:
 deluser      [--force]   [--remove-home]  [--remove-all-files] user
?
 
Old 11-25-2012, 04:29 PM   #3
fatalerror0x00
Member
 
Registered: Oct 2012
Location: Holden, ME, USA
Distribution: SlackWare64 14.00
Posts: 185

Original Poster
Rep: Reputation: 0
Got it guys thanks I deleted the user along with home directory where slackware doesn't support deluser i did userdel to delte user and there home directory did find / -user 666 (userid) -print | less to go through all the files that were created during testing (had to use userid since user no longer exist it associates files with that users id not name anymore so the name can belong to a whole nother person without alloowing them access to files that aren't theres) and I removed all files owned by them (which was nothing system related specificially so it was all safe to remove

Last edited by fatalerror0x00; 11-25-2012 at 06:08 PM.
 
  


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
restricrt users deleting files on samba share Gil@LQ Linux - Server 2 06-17-2012 02:27 AM
deleting files recursively, but not directories tantan Linux - General 2 03-07-2007 06:01 AM
777 directories and deleting files? emme0032 Linux - Security 4 10-31-2006 11:27 AM
trouble deleting files / directories neocontrol Linux - Software 1 07-16-2005 04:09 PM
Deleting directories with files in them AMDPwred Linux - General 7 02-16-2003 12:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:05 AM.

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