*BSD News Article 77554


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!serv.hinet.net!nctuccca.edu.tw!howland.erols.net!newsfeed.internetmci.com!btnet!btinternet!usenet
From: Neil <neil@corpex.com>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: How do I remove users?
Date: Wed, 04 Sep 1996 09:24:06 +0100
Organization: BT Internet
Lines: 24
Message-ID: <322D3CA6.41C67EA6@corpex.com>
References: <cajas001.841410433@maroon.tc.umn.edu>
NNTP-Posting-Host: kaneda.corpex.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 2.02 (X11; I; FreeBSD 2.1.0-RELEASE i386)

Judith I Cajas-Dorin wrote:
> 
> How do I remove old FreeBSD users?  So far I am only changing
> the password.  What files and directories have to be removed?
> 

This question has bugged me too as there does not seem to be an
rmuser (or deluser) command.  Short of writing a script (I'm sure
someone's done that, I suggest using commands like to find files

find / -user <UID> -print 

or even 

find / -user <UID> -exec rm {} \;

to delete (BE VERY CAREFUL - of course)

Other than that, check /etc/group /etc/aliases /var/mail /home/user as
they are the most likely place for both entries and files.


Cheers,
	Neil