cPanel/Linux: How to Suspend / Unsuspend an Account via SSH
If you want to suspend/unsuspend an account via SSH instead of doing it through WHM web interface. following commands may be helpful for you.
Suspend an Account from SSH
root@hostname [~]# /scripts/suspendacct <accountname>
<accountname> should be your account name, mostly your cpanel username.
Suspend an Account from SSH (Prevent Resellers from Unsuspending)
root@hostname [~]# /scripts/suspendacct <accountname> "Reason to Suspend" 1
“Reason to Suspend” you can add the reason that why you’re suspending the account.
While 1 at the end is to prevent resellers from unsuspending the account.
Unsuspend an Account from SSH
root@hostname [~]# /scripts/unsuspendacct <accountname>
Tags: account, centos, command, cpanel, howto, linux, ssh, suspend, suspendacct, unsuspend, unsuspendacct, whm