cPanel How to Suspend All Accounts

Issue: You have a reason to immediately suspend all account on a cPanel server. In such a scenario, using WHM *might* be too slow.

Solution: SSH into the server and use the following command to suspend all accounts:

ls /var/cpanel/users | xargs -n1 /scripts/suspendacc

Of course the same tool (script) can be used to suspend individual accounts:

/scripts/suspendacct USERNAME

or unsuspend individual accounts:

/scripts/unsuspendacct USERNAME

Leave a comment

BlogLogistics