WHM/cPanel

How to Manage Account Suspension for cPanel accounts within WHM

How to suspend Unsuspend cPanel accounts from WHM

  1. Login to WHM control panel using your account information.
  2. Navigate Home »Account Functions »Manage Account Suspension .
  3. you can see the list of domains and username list , either select the domain or username then “WHM will display unsuspended accounts in white, and displays suspended accounts in red :
    1. once you select the domain or username if not suspended click suspend button or if its suspended click Unsuspend button.
    2. Reason (if suspending):you can describe the reason why you are suspending the account.
    3. Prevent resellers from unsuspending:select this option to ensure that resellers cannot unsuspend the account.
Once you suspend cPanel account You cannot change a suspended account’s password.

Also when you suspend an account, the system adds a special character to the front of the cPanel user’s password field. This special character creates an invalid hash, which results in an invalid password message to the cPanel user.


What Happens When You Suspend cPanel Account

According to cPanel documentation the following will occurred by system once you suspend cPanel account:

  • The system adds the SUSPENDED=1 and SUSPENDTIME=epochdate flags to the account’s /var/cpanel/users/user/cpuser file, where epochdate represents the Unix time at which you suspended the account.
  • If you select the Prevent resellers from unsuspending checkbox when you suspend the account, the system touches the /var/cpanel/suspended/user.lock file.
  • System stops all of the processes that account owns.
  • The system creates a suspended.lists directory in Mailman and moves the files for each of the account’s mailing lists to this directory.
  • The system creates a /etc/webdav/shadow directory in the user’s home directory.
  • The system adds LOCKED string to the /etc/shadow password files for all of the account’s email users.
  • The system no longer allows the account’s users to send email through the mail server.Also, the mail server will force all mail currently in the outbound message queue from that account’s users to fail.
  • The system updates Apache’s httpd.conf file with a Virtual Host include file for the user.
  • The system uses the passwd -l command to lock the account’s /etc/shadow password file. This command prepends the account’s passwords with two exclamation marks (!!).
  • The system modifies the permissions of the user’s public_ftp directory to 0000.
  • The system changes all of the MySQL users’ passwords.
XsoftHost Support

Share

Recent Posts

Add Extra IP addresses to server configuration On Ubuntu 17.10 and later

Each failover IP address will need its own line in the configuration file. The configuration…

4 years ago

Create RAID Arrays with mdadm on Ubuntu

What is mdadm? The mdadm utility can be used to create and manage storage arrays…

4 years ago

How to change the maximum upload file size for PHP

There are several scenarios that you might need to increase or decrease your php maximum…

6 years ago

How to install Let’s Encrypt Plugin in WHM/cPanel

What is Let’s Encrypt? Let’s Encrypt is a free certificate authority provided by the Internet…

6 years ago

How to install python in my cPanel and add py extension

Python normally installed on all cPanel hosting server because most of Centos/red hat update system…

6 years ago

How to install and enable GUI GNOME Desktop on centos 7

Usually CentOS 7 comes in a numbers of variants, For most users, there are two…

6 years ago