*BSD News Article 84413


Return to BSD News archive

#! rnews 1557 bsd
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!cam-news-hub1.bbnplanet.com!news.mathworks.com!news.sprintlink.net!news-peer.sprintlink.net!news.sprintlink.net!news-hub.sprintlink.net!news.sprintlink.net!news-stk-3.sprintlink.net!news.cirrus.com!usenet
From: Clint Wolff <clint_w@colorado.cirrus.com>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Getting rid of users.
Date: Fri, 06 Dec 1996 09:04:36 -0700
Organization: Cirrus Logic, Inc.
Lines: 24
Message-ID: <32A84414.41C67EA6@colorado.cirrus.com>
References: <588l8g$77f@kanga.accessone.com>
NNTP-Posting-Host: longs.colorado.cirrus.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.0Gold (X11; I; SunOS 4.1.3_U1 sun4m)

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.

clint

PS The backslash in the 'find' command is required to prevent the
shell from interpreting the semicolon...

-- 
Underscores added to return address to defeat advertising engines.

clintw@colorado.cirrus.com