#1 (permalink)  
Old 03-14-2007, 02:38 PM
Registered User
 
Join Date: Jun 2006
Posts: 10
hosteurolive is on a distinguished road
Multiple Terminate accounts

hi all
I need your help for a little script

I found this one but not complete:


#!/bin/sh

cd /var/cpanel/suspended/
for user in *
do
echo y | /scripts/killacct $user
done
exit


I want not remove accounts suspended due to the bandwith limit and I want to keep users from march 2007

thx for your help
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-15-2007, 08:20 AM
nilesh_kolte's Avatar
Registered User
 
Join Date: Apr 2006
Posts: 41
nilesh_kolte is on a distinguished road
Use the following script to terminate the accounts.


for user in `cat list11`
do
echo "================================================= ==="
echo "Terminating user $user"
echo y | /scripts/killacct $user
done
echo "~~~~~~~~~~~~~~~~D~O~N~E~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~"

First create a list of the suspended user which was suspedned before march 2007 and put that user in the file call list11. Create both files in the same location. Like script is located in /home/kill.sh so the list11 should be in /home/

Good Luck
__________________
~~~ Cool Buddy ~~~
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 09:25 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc