From owner-freebsd-hackers Wed Jul 3 13:58:13 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id NAA24796 for hackers-outgoing; Wed, 3 Jul 1996 13:58:13 -0700 (PDT) Received: from palmer.demon.co.uk (palmer.demon.co.uk [158.152.50.150]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id NAA24783 for ; Wed, 3 Jul 1996 13:58:07 -0700 (PDT) Received: from palmer.demon.co.uk (localhost [127.0.0.1]) by palmer.demon.co.uk (sendmail/PALMER-2) with ESMTP id VAA11008; Wed, 3 Jul 1996 21:57:44 +0100 (BST) To: Scanner cc: Jaye Mathisen , hackers@FreeBSD.ORG From: "Gary Palmer" Subject: Re: Is there a real live actual working deluser script? In-reply-to: Your message of "Wed, 03 Jul 1996 15:48:02 EDT." Date: Wed, 03 Jul 1996 21:57:43 +0100 Message-ID: <11006.836427463@palmer.demon.co.uk> Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Scanner wrote in message ID : > 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. You might have told people that it only works if the user is in group 1001 :-) I put that in to stop you deleting yourself Chris :-) > GID=`echo $PASSWD | awk -F : ' { print $4 } '` > if [ $GID != "1001" ]; then > echo "\"$LUSER\" is not in group 1001 (users). Aborting." > exit 1 > fi This bit of code is possibly only applicable to people like WebSpan... Gary -- Gary Palmer FreeBSD Core Team Member FreeBSD: Turning PC's into workstations. See http://www.FreeBSD.ORG/ for info