Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 03 Jul 1996 21:57:43 +0100
From:      "Gary Palmer" <gpalmer@FreeBSD.ORG>
To:        Scanner <scanner@webspan.net>
Cc:        Jaye Mathisen <mrcpu@cdsnet.net>, hackers@FreeBSD.ORG
Subject:   Re: Is there a real live actual working deluser script? 
Message-ID:  <11006.836427463@palmer.demon.co.uk>
In-Reply-To: Your message of "Wed, 03 Jul 1996 15:48:02 EDT." <Pine.BSI.3.93.960703154514.13501A-100000@orion.webspan.net> 

next in thread | previous in thread | raw e-mail | index | archive | help
Scanner wrote in message ID
<Pine.BSI.3.93.960703154514.13501A-100000@orion.webspan.net>:
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?11006.836427463>