How do I suspend/unsuspend a cPanel account via root SSH?

Suspending an account means the associated website is no longer visible online. Instead, visitors will see a message indicating that the account is suspended. Customers with suspended accounts cannot use FTP, SSH, or cPanel to access their accounts.

From SSH, you can suspend or unsuspend accounts. When you suspend an account, visitors will see a generic suspension page when accessing the associated websites. Unsuspending the account will automatically remove this redirect.

 

Suspend/Unsuspend cPanel Account Using Terminal.

If you have root access or administrator privileges for the user, you can suspend a cPanel account using the terminal. cPanel provides convenient scripts located at /usr/local/cpanel/scripts to simplify administrative tasks. To suspend a cPanel account from the terminal, you can use the script located at /usr/local/cpanel/scripts/suspendacct.

 

How do you suspend a Reseller account from the Terminal?

Step 1: Log into your cPanel server using SSH.

Step 2: Use the SSH command to connect to your cPanel server. You'll need the server's IP address or domain, as well as your SSH username and password.

Step 3: Once you're logged in via SSH, use one of the following commands to suspend the reseller account. Replace reseller_username with the username of the reseller account you want to suspend:

# /usr/local/cpanel/scripts/suspendacct username "reason"

Note: Replace the username with your cPanel username. Enter the reason for suspending the cPanel account.

Using these commands, you can easily suspend a cPanel account from the terminal on your cPanel server. Always make sure to use these commands responsibly and with proper authorization.

 

How do you unsuspend a Reseller account from the Terminal?

Step 1: Log in to your cPanel server using SSH.

Step 2: Use the SSH command to connect to your cPanel server. You'll need the server's IP address or domain, along with your SSH username and password.

Step 3: Once you're logged in via SSH, use the following command to unsuspend the reseller account: Replace reseller_username with the username of the reseller account you want to unsuspend:

# /usr/local/cpanel/scripts/unsuspendacct username "reason"

Note: Replace the username with your cPanel username. Enter the reason for suspending the cPanel account.

Conclusion:

In summary, suspending or unsuspending a cPanel account using root SSH is a simple process that allows administrators to control account statuses on a server easily. By using basic commands like /scripts/suspendacct or scripts/unsuspendacct, users can quickly suspend or restore access to specific accounts as needed. This approach ensures effective account management and improves server security and performance.


Was this answer helpful?

« Back

chat