From owner-freebsd-questions Thu Jun 26 02:06:36 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id CAA12740 for questions-outgoing; Thu, 26 Jun 1997 02:06:36 -0700 (PDT) Received: from shell6.ba.best.com (jkb@shell6.ba.best.com [206.184.139.137]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id CAA12735 for ; Thu, 26 Jun 1997 02:06:34 -0700 (PDT) Received: from localhost (jkb@localhost) by shell6.ba.best.com (8.8.5/8.7.3) with SMTP id CAA01713; Thu, 26 Jun 1997 02:06:20 -0700 (PDT) X-Authentication-Warning: shell6.ba.best.com: jkb owned process doing -bs Date: Thu, 26 Jun 1997 02:06:20 -0700 (PDT) From: Jan Koum X-Sender: jkb@shell6.ba.best.com To: Annelise Anderson cc: jsantos@quetzal.net, freebsd-questions@FreeBSD.ORG Subject: Re: Removing a User In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Hi all, Did you /usr/sbin/pwd_mkdb? You can also use /usr/sbin/rmuser next time -- but you need perl for it. Which most people have anyway. The nice thing about rmuser that is does everything for you... incuding old left at jobs, mail spools, etc. -- yan On Thu, 26 Jun 1997, 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. > >