What Happens When You Suspend an Account

What Happens When You Suspend an Account
This document describes the actions that the system performs when you suspend an account.

Effects of suspension

The following table describes the actions that the system performs when you suspend an account and the limitations that result from these actions:

Note:

In the following table, user represents the account's username.

System action
Account limitation

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.

The appropriate WHM interfaces sets the account to suspendedand list the reason for suspension.
If you select the Prevent resellers from unsuspending checkbox when you suspend the account, the system touches the /var/cpanel/suspended/user.lock file.  

The appropriate WHM interfaces sets the account to locked. The system does not allow resellers to unsuspend the account.

Warning:

If you select this option when you suspend an account, the systemonly allows the rootuser to unsuspend the account.

The system stops all of the processes that that account owns.

The system stops any functions that the cPanel account currently performs as the logged-in user. The following list includes some of the effects that this action may cause:

  • The system forcibly logs the user out of a current session.
  • The system stops the user's cron jobs.
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 account's Mailing Lists no longer function.
The system creates a /etc/webdav/shadow directory in the user's home directory. The account's Web Diskaccounts no longer function.
The system adds LOCKED string to the /etc/shadow password files for all of the account's email users.  

The account's email userscannot download mail.

Note:

The system continues to deliver mail to the account.

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 account's email userscannot send mail, and any mail they had in the mailserver queue will fail.

The system updates Apache's httpd.conf file with a Virtual Host include file for the user.
  • The system creates the include file at the following location: 
     

    /usr/local/apache/conf/includes/account_suspensions.conf
  • This include file contains a RedirectMatch rule that redirects website traffic to the default template for suspended accounts.

    Note:

     

    Apache httpd.conf include files originate from the following lines in Apache's main.default file:

    [% IF file_test('f', '/usr/local/apache/conf/includes/account_suspensions.conf') -%]
    
    	Include "/usr/local/apache/conf/includes/account_suspensions.conf"
    
    	[% END -%]

     

     

Visitors cannot access the account's websites. Instead, a message displays that states the account was suspended.

Note:

To edit the message that displays for a suspended account's sites, use WHM's Web Template Editor interface (Home >> Account Functions >> Web Template Editor).

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 following list includes some of the effects that this action causes:
  • The user cannot log in to their cPanel account.
  • The account's database users cannot log in to their databases.
  • The suspended account's password cannot change.

The system modifies the permissions of the user's public_ftp directory to 0000.

The system then creates the /etc/proftpd/user.suspended file and locks the account's FTP passwords in the/etc/proftpd/passwd.vhosts and /etc/proftpd/user password files. Fibnally, the system prepends the account's FTP passwords with two exclamation marks ( !! ).

 

The account's FTP userscannot log in to the FTP server.
The system changes all of the MySQL users' passwords. MySQL users cannot access their databases.
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to Create a New Account

Create a New Account                 =>  The Create a New Account interface allows you to...

Change Site’s IP Address

Change Site's IP Address         This interface allows you to change an account's IP address. You...

Email All Users

 Email All Users                      This interface enables you to email every cPanel user...

Force Password Change

Force Password Change               This feature allows you to force users to change their...

Limit Bandwidth Usage

Limit Bandwidth on an Account               This interface enables you to change the allotted...