From owner-freebsd-questions Thu Jun 26 01:18:35 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id BAA10582 for questions-outgoing; Thu, 26 Jun 1997 01:18:35 -0700 (PDT) Received: from gatekeeper.barcode.co.il (gatekeeper.barcode.co.il [192.116.93.17]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id BAA10577 for ; Thu, 26 Jun 1997 01:18:30 -0700 (PDT) Received: (from smap@localhost) by gatekeeper.barcode.co.il (8.8.5/8.6.12) id LAA20584; Thu, 26 Jun 1997 11:18:01 +0300 (IDT) X-Authentication-Warning: gatekeeper.barcode.co.il: smap set sender to using -f Received: from localhost.barcode.co.il(127.0.0.1) by gatekeeper.barcode.co.il via smap (V1.3) id sma020580; Thu Jun 26 11:17:30 1997 Message-ID: <33B22562.7A18@barcode.co.il> Date: Thu, 26 Jun 1997 11:16:34 +0300 From: Nadav Eiron X-Mailer: Mozilla 3.0 (X11; I; SunOS 5.5 sun4m) MIME-Version: 1.0 To: Annelise Anderson CC: jsantos@quetzal.net, freebsd-questions@FreeBSD.ORG Subject: Re: Removing a User References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Annelise Anderson wrote: > > > Hi, > > > > How do I remove a user on FreeBSD?? > > > > I have remove a user from the files, master.passwd, passwd, group and > > /var/log/adduser, but I can still log on to the server!! > > > > What can I do to resolve this problem?? > > > > Thanks, > > > > Jose Santos > > Guatemala > > Hi Jose, I am forwarding your message to freebsd-questions in case > there's something going on I'm not aware of. > > Did you use vipw to remove the user? I think that's what you need to do-- > not edit the master.passwd file directly. (But you can edit the > /etc/group file directly, as root.) > > You do not need to do anything to /var/log/adduser; that's a record of > what's been done, not a list of current users, as far as I know. > > Annelise > > In addition to removing the user with vipw and deleting the user from > /etc/group, you should also delete the user's files, with > rm -r /usr/home/username > where username is the name of the user. and his mailbox: /var/mail/username, which exists if this user ever received mail. Nadav