*BSD News Article 84676


Return to BSD News archive

Newsgroups: comp.unix.bsd.freebsd.misc
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mira.net.au!news.vbc.net!vbcnet-west!samba.rahul.net!rahul.net!a2i!viper.inow.com!news.he.net!www.nntp.primenet.com!nntp.primenet.com!howland.erols.net!Frankfurt.Germany.EU.net!Germany.EU.net!ruhr.de!acme1.ruhr.de!usenet
From: Christoph Haas <chris@acme1.ruhr.de>
Subject: Re: Getting rid of users.
X-Newsreader: Gnus v5.3/Emacs 19.34
Sender: usenet@acme1.ruhr.de (Charlie Root)
Nntp-Posting-Host: localhost
Organization: Private BSD Site, Witten
Lines: 27
Message-ID: <87u3pwzo1x.fsf@acme1.ruhr.de>
References: <588l8g$77f@kanga.accessone.com>
	<32A84414.41C67EA6@colorado.cirrus.com>
Date: Sun, 8 Dec 1996 22:08:58 GMT

Clint Wolff <clint_w@colorado.cirrus.com> writes:

> 
> erick@accessone.com wrote:
> > 
> > What is the best way to delete everything about a user in FreeBSD.  I'm new
> > to the system but know other versions of UNIX.  Are there any neat utilities to
> > take care of this chore from the command line or X-Windows?  Or is it time to
> > script it all again?
> > 
> > Thanks!
> 
> A quick a dirty way is to nuke a user (say erick :) is:
> 
> 	find / -user erick -exec rm {} \;
> 
> and then use 'vipw' to delete the user from your passwd file.

And  don't  forget to  remove him  from   /etc/group and  kill all his
processes. And if the system is part  of a NIS  domain then remove him
from the apropriate files on the NIS server. 


-- 
If you put garbage in a computer nothing comes out but garbage.  But
this garbage, having passed through a very expensive machine, is
somehow enobled and none dare criticize it.