*BSD News Article 77626


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mira.net.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!cancer.vividnet.com!hunter.premier.net!www.nntp.primenet.com!nntp.primenet.com!howland.erols.net!vixen.cso.uiuc.edu!ux5.cso.uiuc.edu!igor
From: igor@students.uiuc.edu (igor vladimirovich roshchin)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: How do I remove users?
Date: 6 Sep 1996 20:51:32 GMT
Organization: University of Illinois at Urbana
Lines: 27
Message-ID: <50q2sk$9n9@vixen.cso.uiuc.edu>
References: <cajas001.841410433@maroon.tc.umn.edu> <50kca7$17p@acme1.ruhr.de>
NNTP-Posting-Host: ux5.cso.uiuc.edu
X-Newsreader: TIN [version 1.2 PL2]

Christoph Haas (chris@acme1.ruhr.de) wrote:
: Judith I Cajas-Dorin (cajas001@maroon.tc.umn.edu) wrote:

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

: First of all you should delete the user's entry in the password file (use 
: vipw). Then you should edit the /etc/group and delete every occurence of 
: the users login name. After that, remove the user's home directory. You 
: should have a look at ps -ef for tasks belonging to the user to be 
: deleted. And finally look for files in other directories that are owned 
: by the user. But think twice before deleteing them, they may be needed by 
: other users that belong to one of the groups the user was in.

: That's all, I think.


It seems to me, that you might need to look for any cron jobs.
Though, I never tried to experiment if the cron job will work
after the user is removed.
I'd also suggest removing files first, and just then the passwd file
entry. DOing this way you can run "find" easier, to find
all user's files.
Don't forget about /var/mail/USER

IgoR
aka StR