If you want to suspend all cPanel accounts at once just use this command:

for username in `cat /etc/userdomains | awk {'print $2'} | grep -v nobody | sort -n | uniq`;do /scripts/suspendacct $username;done

Simple as that!

Leave a Reply

Your email address will not be published. Required fields are marked *