|
|||
|
How to mass terminate accounts??
Hi, i need to terminate every single domain on my coanel dedicated server. I have 600 domains on it so it would take waaaay to long to delete each account manually.
I tried searching but came up with nothing... does anyone know the best way i can delete every single account on my server. I need to delete all of them a.s.a.p Maybe do it via SSH somehow? Thanks
|
|
|||
|
Use the Accounting functions put all the accounts usernames in a array then for each value in the array make it termanate it.
If you get what I mean.... Hope this helps....
__________________
Apache to die or not to die, that is the question... |
|
|||
|
Quote:
cPanel.net Support Ticket Number:
__________________
Apache to die or not to die, that is the question... |
|
|||
|
Hi-
Another quick way of terminating many accounts is with /scripts/killacct <username> y (assuming that you also want to remove that user's named entries, otherwise replace the y with an n) You can write a perl or shell script that goes through and runs that command for each user you want to delete. Maybe something like: #!/usr/bin/perl @userstodie = ('joe', 'bob', 'jim'); foreach $user (@userstodie) { `/scripts/killacct $user y`; } A slightly more complicated program could look in the cpanel users files and delete all the users. Hint, there's a file for every cpanel user in: /var/cpanel/users, a simple opendir() would go a long way. Good Luck, Erek Dyskant Unix Consultant cPanel.net Support Ticket Number: |
![]() |
| Thread Tools | |
| Display Modes | |
|
|