You can suspend an account due to many reasons but here are few reasons:
- When a user is unable to obey your terms of service.
- When a user has not paid their bill for the service.
Let’s look at the steps used for suspending or unsuspending an account:
- Go to WHMs’ “Manage Account Suspension” interface. You can access this interface by using following steps:
Log in to WHM >> you will see WHMs’ home interface>> Navigate to the “Account Functions” option >> then select the “Manage Account Suspension” interface.
/usr/local/cpanel/scripts/suspendacct è it will suspend an account.
/usr/local/cpanel/scripts/unsuspendacct è it will unsuspend an account.
When you suspend any account, then following statements are true:
- The cpuser file of that suspended account will contain SUSPENDED =1 flag.
- The following Apache’s file will contain a Virtual Host for the user:
- The above file contains a “ResdirectMatch” directive which redirects the traffic of the website for the users’ account to an account suspension page.
- The accounts’ password hash in the /etc/shadow and /etc/proftpd/username files is prefixed by the system with two exclamation marks (! !).
- The reason for suspension or the accounts’ previous shell location is present in the following file:
- The *LOCKED* entries around the password entries in the mail users’ following file is placed by the system:
- In addition to the DNS queries, the system allows email delivery and forwarding.
Let’s discuss the few reasons for which you may want to terminate an account:
Once you terminate an account, the system will permanently delete all of its data from the server.
- When any account is moved from one server to another server with its entire first server’s information transferred properly.
- If the user has not paid the bill for the service for the significant period of time.
Let’s discuss how to terminate an account:
You can use one of the following methods for terminating an account:
- You can use WHMs’ “Terminate Accounts” interface. Follow the below steps for accessing the “Terminate Accounts” interface:
Log in to the WHM >> you will see the WHMs’ home interface>> navigate to the “Account Functions”>> select the “Terminate Accounts” interface.
- Via the command line run the following script as the root user:
Once you terminate an account, then following statements are true:
- Until the system does not remove the accounts’ MySQL users, you cannot immediately recreate the account.
- The accounts DNS Zones are by default deleted by the system.
- If you wish to keep the accounts’ DNS Zone, you then you can choose that option. It is useful when you are required to move that account to a different server which belongs to the same DNS cluster.
Now you must have received an idea about why is it required to suspend an account due to any reason and also the reasons for which you may want to terminate an account etc.