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

Cyberduck and FileZilla: A Comprehensive Comparison

As a web designer and web developer your experience must have reached to new height, right? Further, you need to…

2 weeks ago

The Science Behind Social Media Posting Times

In today's digital landscape, timing is everything. Whether you're a social media manager, business owner, or content creator, the success…

3 weeks ago

Mastering Google Search Console: Tips for New Users

Are you a website owner? Maintaining the website is the prime concern for any website owner. Yes, it’s equally important…

3 weeks ago

A Comprehensive Guide to Changing and Protecting the WordPress Login URL

If you’ve planned to launch a WordPress website, you might get a question, “How do I log in to WordPress?”…

4 weeks ago

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

1 month ago