From owner-freebsd-isp Wed Mar 20 6:49:11 2002 Delivered-To: freebsd-isp@freebsd.org Received: from lily.ezo.net (lily.ezo.net [206.102.130.13]) by hub.freebsd.org (Postfix) with ESMTP id D108537B400 for ; Wed, 20 Mar 2002 06:49:03 -0800 (PST) Received: from peony.ezo.net (peony.ezo.net [206.102.130.11]) by lily.ezo.net (8.11.6/8.11.6) with ESMTP id g2KEmqo23097; Wed, 20 Mar 2002 09:48:53 -0500 (EST) (envelope-from jflowers@ezo.net) From: "Jim Flowers" To: Odhiambo Washington , FBSD-ISP Subject: Re: User Maanagement (Bulk Processing) Date: Wed, 20 Mar 2002 09:50:05 -0500 Message-Id: <20020320095005.M82852@ezo.net> In-Reply-To: <20020320142100.GJ14038@ns2.wananchi.com> References: <20020320142100.GJ14038@ns2.wananchi.com> X-Mailer: Open WebMail 1.60 20020130 X-OriginatingIP: 24.93.230.119 (jflowers) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org users=`cat badusers.txt` for user in $users; do wol-suspend.sh $user done and, no doubt, something similar to restore them. > Hello people, > > Allow me to ask this because I work for an ISP ;-) Actually > I am just seeking help from shell script gurus. I have a shell > script that I use to suspend user accounts on my FreeBSD box. > It works well for single user but there are time like now when > I want to suspend over 400 users for non payment. I have another > script that can do this but again the problem is my scripts > are so crude they do not do any sensible checks . My bad. > > I am attaching the script - wol-suspend.sh Basically one of > you gurus can be able to modify this script so that it takes > a flat file (badusers.txt) which has one user per line and > suspend all of them, yes?? I sincerely hate to do > > ./wol-suspend.sh userx > ./wol-suspend.sh userb > > My insistence on this is because our Customer Service Executives > will verify the user's status by doing > > finger userx > > and they'll see Plan: Suspended. > > Other than this, what tools do pepole use for such tasks? Someone > willing to share what they have?? > > Thanking you. > > -Wash > > -- > Odhiambo Washington "The box said 'Requires > Wananchi Online Ltd. www.wananchi.com Windows 95, NT, > or better,' Tel: 254 2 313985-9 Fax: 254 2 313922 so > I installed FreeBSD." GSM: 254 72 743 223 GSM: 254 733 > 744 121 This sig is McQ! :-) > > ++ > Kleptomaniac, n.: > A rich thief. > -- Ambrose Bierce, "The Devil's Dictionary" -- Jim Flowers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message