Results 1 to 7 of 7
-
04-25-2003, 10:29 PM #1Web Hosting Master
- Join Date
- Sep 2002
- Location
- London/Edinburgh
- Posts
- 1,131
Mass CPanel Account Delete Script?
Hello.
Does anyone have a script that will delete a list (domain names) of accounts from a cpanel server?
We are deleting all accounts of some of our servers at work and there are like 200 to be deleted on one box....
Anyone have a script to do it?█ Europhase UK Limited - XEN/OpenVZ UK/US Virtual Private Servers | R1Soft Backups for Web Hosts
█ Custom R1Soft Backups | UK/US Web Hosting | UK/US Virtual Private Servers
█ 99.9% Uptime SLA | Non Overloaded Service | Guaranteed Ram / Resources
█ Company: SC345142 VAT: GB-947754180 Tel: 0870 4710 895
-
04-25-2003, 11:35 PM #2Web Hosting Guru
- Join Date
- Jan 2003
- Posts
- 259
I don't think it would be too hard to do something like that, you can even just use the terminate account script (/scripts/killacct). Perhaps some modifications to this file or a shell script to remove everyone.
If your deleting all accounts, you could always have a fresh install of the OS done.."Television has brought back murder into the home -- where it belongs."
♣ Alfred Hitchcock ♣
-
04-26-2003, 03:47 AM #3Web Hosting Master
- Join Date
- Sep 2002
- Location
- London/Edinburgh
- Posts
- 1,131
I cannot reinstall the OS. We are only deleting some accounts. (some = 100-250 area). These are small 10MB accounts HTML only. So no problem having lots of them on a box, heh.
█ Europhase UK Limited - XEN/OpenVZ UK/US Virtual Private Servers | R1Soft Backups for Web Hosts
█ Custom R1Soft Backups | UK/US Web Hosting | UK/US Virtual Private Servers
█ 99.9% Uptime SLA | Non Overloaded Service | Guaranteed Ram / Resources
█ Company: SC345142 VAT: GB-947754180 Tel: 0870 4710 895
-
04-26-2003, 09:59 PM #4Disabled
- Join Date
- Apr 2003
- Location
- New York City, NY
- Posts
- 3
This would actually be a nice feature to have in WHM from Nick. Maybe someone should suggest it to him?
Jonathan
-
04-26-2003, 11:08 PM #5Web Hosting Master
- Join Date
- May 2001
- Posts
- 2,129
I'd recommend manually terminating them. If you mass-terminate 100+ accounts, you will end up with corrupted configuration files.
Marc Wyss - marc@mchost.com
MCHost Inc - Experts in Private Label Reseller Plans
http://www.mchost.com
-
04-26-2003, 11:30 PM #6Aspiring Evangelist
- Join Date
- Sep 2000
- Posts
- 429
a simple shell script could delete all the accounts on a server.
for i in $(ls /var/cpanel/users); do /scripts/killacct $i; done
that would delete all the users in /var/cpanel/usersLast edited by JonnyQuags; 04-26-2003 at 11:35 PM.
-
04-27-2003, 12:11 AM #7Web Hosting Master
- Join Date
- Sep 2002
- Location
- London/Edinburgh
- Posts
- 1,131
i dont want to delete all accounts however, just some of them.
█ Europhase UK Limited - XEN/OpenVZ UK/US Virtual Private Servers | R1Soft Backups for Web Hosts
█ Custom R1Soft Backups | UK/US Web Hosting | UK/US Virtual Private Servers
█ 99.9% Uptime SLA | Non Overloaded Service | Guaranteed Ram / Resources
█ Company: SC345142 VAT: GB-947754180 Tel: 0870 4710 895