logicsupport

Well-Known Member
Jun 5, 2007
138
0
166
I don't think this functionality is currently available in the WHM . I would say you take a list of users that need to be suspended and write a simple script . Open a file named "suspend" and copy the below script .

[email protected] [~]#vi suspend

#!/bin/bash
for i in `cat /root/accounts`;do
/scripts/suspendacct $i;
done

[email protected] [~]#chmod 755 suspend

Note that /root/accounts should contain the accounts username that you wish to suspend.

[email protected] [~]# vi /root/accounts

testuser1
testuser2


After that run the script as "root"

[email protected] [~]# bash suspend

Its a simple script .You can modify it as needed .
 

gearheadhost

Member
Jun 14, 2009
14
0
51
/scripts/suspendacct $i;
This is not built into WHM but there are a few tweaks you can do to the above line.

prevent reseller from unsuspending
/scripts/suspendacct $i 1;

This will show the suspended reason in WHM of "Because you are using 1kb of RAM" lol
/scripts/suspendacct $i "Because you are using 1kb of RAM";

or if you want some more fun change it to /scripts/killacct $i;

Happy bashing!