WHM

The Steps Used For Suspending or Unsuspending an Account? in WHM /cPanel

Account Suspension:

The account suspension is not automatically initiated by the system. An account is suspended by you and the system urges several limitations which remains as it is until you unsuspend the account.

You can suspend an account due to many reasons but here are few reasons:

  1. When a user is unable to obey your terms of service.
  2. When a user has not paid their bill for the service.

Let’s look at the steps used for suspending or unsuspending an account:

  1. 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.

  • You can run either of the following commands from the command line:

/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:

  1. 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:

/usr/local/apache/conf/includes/account_suspensions.conf

  • 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:

/var/cpanel/suspended/user

  • The *LOCKED* entries around the password entries in the mail users’ following file is placed by the system:

/home/user/etc/example.com/shadow

  • 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.

  1. When any account is moved from one server to another server with its entire first server’s information transferred properly.
  2. 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:

  1. 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:

/usr/local/cpanel/scripts/removeacct

Once you terminate an account, then following statements are true:

  1. Until the system does not remove the accounts’ MySQL users, you cannot immediately recreate the account.
  2. The accounts DNS Zones are by default deleted by the system.

Important Note:

  • 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.

Visit- cPanel Hosting Services

Hostripples


Amit Jadhav
Amit Jadhav is working in Hostripples since years he is a passionate engineer... He is working as a senior technical support engineer, as it's a responsible position because it's a lifeline to our customers... Moreover he is dealing in troubleshooting server problems and is always ready to assist our customers in technical issues... Hostripples is glad to have Amit Jadhav on the board...

Recent Posts

The Ultimate Showdown: Linux vs Windows for VPS Hosting

As the demand for virtual private servers (VPS) continues to grow, businesses and individuals are faced with a crucial decision:…

2 weeks ago

Questions to Ask Your Web Hosting Support Team

Web hosting is a large industry, as many other factors help any web hosting provider to form a company. The…

2 weeks ago

How to Secure Your WordPress Site in 2025

Welcome to the complete guide to WordPress security best practices in 2024. As technology evolves rapidly, implementing strong security measures…

3 weeks ago

Unlocking the Secrets of Hosting: Essential Questions to Ask Hostripples

Hey, wanted to learn about web hosting? Or do you want to start a new website and need hosting? Questions…

3 weeks ago

DDoS Attacks: What You Need to Know for Protection

In today's digital world, the threat of DDoS attacks has become increasingly prevalent. These types of attacks have the power…

1 month ago