The unsuspendacct Script

Valid for versions 96 through the latest version

Version:

96


Last modified: March 27, 2024

Overview

The /usr/local/cpanel/scripts/unsuspendacct script lets you unsuspend an account from the command line. You can also use WHM’s Manage Account Suspension interface (WHM » Home » Account Functions » Manage Account Suspension) to unsuspend an account.

Run the script

To run this script on the command line, use the following format:

/usr/local/cpanel/scripts/unsuspendacct [account] [options]

Options

Use the following options with this script:

Options
Description
Example
account Required.
The cPanel account that you wish to unsuspend.
username
--child-ok Force the script to unsuspend a distributed cPanel account via a child node.
Warning:
You should always unsuspend accounts from the parent node. Only use this option in an emergency.
--child-ok
--retain-service-proxies Keep the account’s current service proxy settings. If you do not use this option, the script disables service proxying by default. --retain-service-proxies
--help Display the help text for this script. --help

Example

The following example unsuspends the username account and retains its service proxies:

/usr/local/cpanel/scripts/unsuspendacct username --retain-service-proxies

When the script succeeds, the output will resemble the following:

Unsuspending outgoing email....Done
Unsuspending email account logins for example.com .... Done
Unsuspending websites...
Unsuspending FTP accounts...
username's account is now active
Unsuspending mysql users
Keep service proxying settings for this account...Done
username's account has been unsuspended

Additional Documentation