*BSD News Article 69218


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!solace!nntp.uio.no!news.cais.net!bofh.dot!rtd.com!dgy
From: dgy@rtd.com (Don Yuniskis)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Removing Users from FreeBSD 2.0
Date: 23 May 1996 15:07:23 GMT
Organization: CICDO
Lines: 13
Message-ID: <4o1uvb$55j@baygull.rtd.com>
References: <4nvobf$dvu@news.starnet.net> <4nvuc8$622@atlas.uniserve.com>
NNTP-Posting-Host: seagull.rtd.com

In article <4nvuc8$622@atlas.uniserve.com>, Tim Baird <tim@gfmurray.com> wrote:
>In article <4nvobf$dvu@news.starnet.net>, ds3721@strydr.com (David Schnardthorst) says:
>>
>>What is the easiest way to remove users under FreeBSD 2.0.  Can I just take 
>>them out of the passwd file, or is there another way?
>
>Use vipw and pound "dd" on every user line that you want to zap.

Hmmm.... I'd advocate replacing their shell with /nonexistent and *leaving*
everything else where it is.  In other words, keep the record of their UID
(etc.) and don't reuse the ID number.

Unless, of course, you have **lots** of users or are a "casual" site.