From owner-freebsd-questions  Tue Oct 29 21:29:11 1996
Return-Path: owner-questions
Received: (from root@localhost)
          by freefall.freebsd.org (8.7.5/8.7.3) id VAA00468
          for questions-outgoing; Tue, 29 Oct 1996 21:29:11 -0800 (PST)
Received: from gdi.uoregon.edu (gdi.uoregon.edu [128.223.170.30])
          by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id VAA00459
          for <questions@freebsd.org>; Tue, 29 Oct 1996 21:29:07 -0800 (PST)
Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.7.5/8.6.12) with SMTP id VAA00514; Tue, 29 Oct 1996 21:29:03 -0800 (PST)
Date: Tue, 29 Oct 1996 21:29:03 -0800 (PST)
From: Doug White <dwhite@gdi.uoregon.edu>
Reply-To: dwhite@resnet.uoregon.edu
To: Skynet1@cris.com
cc: questions@freebsd.org
Subject: Re: your mail
In-Reply-To: <9610300316.AA22917@voyager.cris.com>
Message-ID: <Pine.BSI.3.94.961029212731.369B-100000@gdi.uoregon.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-questions@freebsd.org
X-Loop: FreeBSD.org
Precedence: bulk

On Tue, 29 Oct 1996 Skynet1@cris.com wrote:

> Hello. I made a test user john doe and I can't seem to be able to remove it. I searched all my files...i removed the entry from p/etc/passwd, master.passwd
> group, and i removed the home dir...but i can stil logon as johndoe with the 
> password and use the directory / as a login diroot. What do I do to
> remove this user????

Use vipw to edit the password file and delete johndoe's entry with the
'dd' command, then rm -rf /usr/home/johndoe.

You can't edit passwd directly since it's a generated file. 

Doug White                              | University of Oregon  
Internet:  dwhite@resnet.uoregon.edu    | Residence Networking Assistant
http://gladstone.uoregon.edu/~dwhite    | Computer Science Major