From owner-freebsd-isp Tue Jan 16 07:24:03 1996 Return-Path: owner-isp Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id HAA19548 for isp-outgoing; Tue, 16 Jan 1996 07:24:03 -0800 (PST) Received: from who.cdrom.com (who.cdrom.com [192.216.222.3]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id HAA19527 for ; Tue, 16 Jan 1996 07:23:58 -0800 (PST) Received: from xioa.cosmic.org (xioa.cosmic.org [205.218.96.207]) by who.cdrom.com (8.6.12/8.6.11) with ESMTP id HAA26896 for ; Tue, 16 Jan 1996 07:18:26 -0800 Received: (from jwb@localhost) by xioa.cosmic.org (8.6.12/8.6.9) id KAA02366; Tue, 16 Jan 1996 10:18:22 GMT From: Joe Beiter Message-Id: <199601161018.KAA02366@xioa.cosmic.org> Subject: Re: deluser To: gestur@islandia.is (Gestur A. Grjetarsson) Date: Tue, 16 Jan 1996 10:18:21 +0000 () Cc: freebsd-isp@freebsd.org In-Reply-To: <199601160631.GAA11793@hummer.islandia.is> from "Gestur A. Grjetarsson" at Jan 16, 96 06:31:54 am X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-isp@freebsd.org Precedence: bulk Gestur A. Grjetarsson said and I quote: ] ]the command would be "closeaccount user", where the script would take ]user assigned for $1 in the script. ] ]where in vipw, you find the user password like and erase it from there. ]the script should be finished erasing the user from your user dir when ]you finish the vipw edit. ] the problem is combining the person deleting accounts and the passwd file in an editor (in vipw). I can't trust them to not delete the root account or the wrong user. Thats why I'm trying to hack vipw.c and pw_util.c.. I want to replace the part that puts you into an editor with something that will instead remove a line from the temp passwd file that contains a pre-verified username.. and then goes on to just rebuild the passwd database.