From owner-freebsd-hackers Thu Jul 4 03:54:36 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id DAA19550 for hackers-outgoing; Thu, 4 Jul 1996 03:54:36 -0700 (PDT) Received: from relay-2.mail.demon.net (disperse.demon.co.uk [158.152.1.77]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id DAA19543 for ; Thu, 4 Jul 1996 03:54:32 -0700 (PDT) Received: from post.demon.co.uk ([158.152.1.72]) by relay-2.mail.demon.net id ae03245; 4 Jul 96 11:53 +0100 Received: from jraynard.demon.co.uk ([158.152.42.77]) by relay-3.mail.demon.net id aa04309; 4 Jul 96 11:51 +0100 Received: (from fhackers@localhost) by jraynard.demon.co.uk (8.6.12/8.6.12) id AAA05227; Thu, 4 Jul 1996 00:41:51 GMT Date: Thu, 4 Jul 1996 00:41:51 GMT Message-Id: <199607040041.AAA05227@jraynard.demon.co.uk> From: James Raynard To: scanner@webspan.net CC: mrcpu@cdsnet.net, hackers@freebsd.org In-reply-to: (message from Scanner on Wed, 3 Jul 1996 15:48:02 -0400 (EDT)) Subject: Re: Is there a real live actual working deluser script? Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >>>>> Scanner writes: > > > talk about it, and about how complicated it would be, and on and on, but > > no actual script, and I don't see a port or a package. > Here is one that is like 2 lines mine and the rest gary's :) > Mine started out simeple as 4 lines. But under use of those less unix > knowledable it went haywire. So it was re-written all but 2 lines. > It works pretty good. Hope it does the job for you. [snip] Not bad! (maybe a crontab -u $LUSER -r in there somewhere would be a good idea). For bonus points, how about removing any files owned by them in /tmp and /var/tmp and killing any jobs they have left running - that should get rid of most of the "little surprises" that people occasionally leave behind... -- James Raynard, Edinburgh, Scotland james@jraynard.demon.co.uk http://www.freebsd.org/~jraynard/