*BSD News Article 77736


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!lynx.aba.net.au!munnari.OZ.AU!spool.mu.edu!howland.erols.net!cam-news-hub1.bbnplanet.com!news.mathworks.com!fu-berlin.de!informatik.tu-muenchen.de!Germany.EU.net!ruhr.de!acme1.ruhr.de!not-for-mail
From: chris@acme1.ruhr.de (Christoph Haas)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: How do I remove users?
Date: 4 Sep 1996 18:55:35 +0200
Organization: Private BSD site, Witten
Lines: 19
Message-ID: <50kca7$17p@acme1.ruhr.de>
References: <cajas001.841410433@maroon.tc.umn.edu>
NNTP-Posting-Host: jerry.local.net
X-Newsreader: TIN [version 1.2 PL2]

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.
 
-- 
Christoph Haas		chris@acme1.ruhr.de

"You can tune a filesystem, but you can't tune a fish." - man tunefs(8)