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 Guide to WordPress Maintenance: Tips and Tricks

When you’re running a business that relies on website traffic and sales to succeed. Then you need to keep it…

3 days ago

Migrate In 2024: Our Comprehensive Website Migration Manual to the Next Level

Migration! Yes, this word is very big in the web hosting industry and it has its importance. Especially for businesses…

5 days ago

Unveiling the Importance of Server Maintenance Plans: A Comprehensive Guide

The server is the backbone of the web hosting industry and it acts like a HERO in the web hosting…

2 weeks ago

IP Address is Blocked? A handpicked list of Solutions to Fix it?

Imagine you are on holiday having a cup of tea and browsing your website or blog.Then, what next?You will get…

3 weeks ago

Explained: Difference between Nameservers Vs. DNS

The web hosting industry is growing every minute, day, and year. It has many terminologies that are important to understand…

1 month ago