*BSD News Article 71868


Return to BSD News archive

#! rnews 1536 bsd
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!news.cis.okstate.edu!newsfeed.ksu.ksu.edu!news.physics.uiowa.edu!math.ohio-state.edu!uwm.edu!news-res.gsl.net!news.gsl.net!news.mathworks.com!hunter.premier.net!netaxs.com!usenet
From: Jed Clear <clear@netaxs.com>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Help deleting a user
Date: Sun, 23 Jun 1996 20:22:03 -0400
Organization: Net Access - Philadelphia's Original ISP
Lines: 22
Message-ID: <31CDDFAB.780@netaxs.com>
References: <31c5fba8.407993@news.intergate.bc.ca> <4qd73s$id5@primus.ac.net> <4qdlcj$hp1@baygull.rtd.com>
NNTP-Posting-Host: wyndmoor2-19.slip.netaxs.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 2.02Gold (Win95; I)

Don Yuniskis wrote:
> 
> In article <4qd73s$id5@primus.ac.net>, Mike Shultz <shultz@mail.gld.com> wrote:
> >jordon@intergate.bc.ca (Jordon Randall) wrote:
> >
> >>I know this is a dumb question, but how do you erase a user?
> >
> >man vipw
> >rm -r /usr/home/????
> 
> 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.

-Jed