*BSD News Article 69922


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!inferno.mpx.com.au!news.unimelb.EDU.AU!cs.mu.OZ.AU!munnari.OZ.AU!news.hawaii.edu!ames!agate!howland.reston.ans.net!newsfeed.internetmci.com!news1.erols.com!newsmaster@erols.com
From: Ken Bigelow <kbigelow@www.play-hookey.com>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Removing Users from FreeBSD 2.0
Date: Sat, 01 Jun 1996 09:31:38 -0700
Organization: Erols Internet Services
Lines: 17
Message-ID: <31B0706A.6172@www.play-hookey.com>
References: <4nvobf$dvu@news.starnet.net> <4nvuc8$622@atlas.uniserve.com> <4o1uvb$55j@baygull.rtd.com> <4ooa31$mmu@dfw-ixnews10.ix.netcom.com>
Reply-To: kbigelow@www.play-hookey.com
NNTP-Posting-Host: kenjb05.play-hookey.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.0b4 (Win16; I)

Takafumi Kamiya wrote:
> 
> I am having the same problem/question.
> 
> I deleted an entry from /etc/passwd , /etc/master.passwd , deleted home
> directory, and I can still login as that user!  And I rebooted, and I can still
> login as that user!!
> 
> Is there something else I need to do to remove the user completely?

The relevant file here is /etc/pwd.db, which is the actual hashed db file that 
gets checked for valid users. You can't edit this file directly; you *must* use 
vipw for this. vipw edits the master.passwd file first, then calls pwd_mkdb(8).

Check the man page on vipw.

Ken