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.

WHM Manage Account Suspension
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.
Share on facebook
Share on twitter
Share on linkedin
Share on telegram
Share on whatsapp

Related Posts