*BSD News Article 71913


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.ecn.uoknor.edu!paladin.american.edu!gatech!newsfeed.internetmci.com!in1.uu.net!frmug.fr.net!penelope.frmug.fr.net!not-for-mail
From: sn@penelope.frmug.fr.net (Sylvain Nierveze)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Help deleting a user
Date: 24 Jun 1996 21:02:47 +0200
Organization: Penelope Corp.
Lines: 16
Message-ID: <4qmoon$14i@penelope.frmug.fr.net>
References: <31c5fba8.407993@news.intergate.bc.ca> <4qd73s$id5@primus.ac.net> <4qdlcj$hp1@baygull.rtd.com> <31CDDFAB.780@netaxs.com>
Reply-To: sn@penelope.frmug.fr.net
NNTP-Posting-Host: 127.0.0.1
X-Newsreader: TIN [version 1.2 PL2]

Jed Clear (clear@netaxs.com) wrote:
: > Actually,
: >         find / -user joe -print
: > will let you see if there's anything else of his (joe's) lying around
: > on your system.  And,
: >         find / -user joe -depth -exec rm -df {} \;
: > will blindly erase everything of his.  There are other variations
: > on this theme...

: Disable the user, do the find, then do the delete from /etc/passwd.
: Also I think find has an option for "unkown" user.

yes (from man find) : 
-nouser and -nogroup : true if the file belongs to an unknown user/group