Different Ways to Disable Root Account in Centos

The root account is the ultimate account on a Linux and other Unix-like operating systems. This account has access to all commands and files on a system with full read, write and execute permissions. It is used to perform any kind of task on a system; to create/update/access/delete other users’ accounts, install/remove/upgrade software packages, and… Read More »

Category: VPS

How to Disable SSH Root Login in Linux

The root account is often the most targeted account by crackers via SSH under Linux. An enabled SSH root account on a Linux server exposed to a network or, worse, exposed in Internet can pose a high degree of security concern by system administrators. The SSH root account should be disabled in all cases in… Read More »

Category: VPS

How to Check Timezone in Linux

How to Check Timezone in Linux In this short article, we will walk newbies through the various simple ways of checking system timezone in Linux. Time management on a Linux machine especially a production server is always an important aspect of system administration. There are a number of time management utilities available on Linux such… Read More »

Category: VPS

Block FTP access using csf firewall

To completely disable the FTP access on the server follow the below steps:

Search for the lines: # Allow incoming TCP ports TCP_IN = and remove the port 21 from the list Save and quit. And then restart the CSF firewall using the below command:

If you want to block FTP access for… Read More »

Category: VPS

How to create account using SSH in cpanel

Login to server via SSH. Use cpanel create account script. Syntax: /scripts/createacct domainname.com username password Example:

It will prompt for ok? Press y The above information is enough to create a temporary cpanel account. It will show the below output. +===================================+ | New Account Info | +===================================+ | Domain: hyderabadwebhosting.in | UserName: hyderaba |… Read More »

DDOS attack check

DDOS attack Whenever the load in the server increases due to a particular user in the server. Check the following: You can check the user in top. Find the domain owned by the user:

use the following command after you get the domain name:

This will give the ip and number of connections… Read More »

Find Exact Installation Date And Time Of Your Linux OS

Find Exact Installation Date And Time Of Your Linux OS On RHEL and its clones such as CentOS, Scientific Linux, Oracle Linux, you can find it using the following command: rpm -qi basesystem sample output is as below Name : basesystem Version : 10.0 Release : 7.el7.centos Architecture: noarch Install Date: Wed 16 Jul 2014… Read More »

Reset cPanel Account Passwords from Command Line

1.Log into your server via SSH Terminal as the root user. 2.You’ll need to enable the allow password change option, by exporting it. Type or copy and paste the following command:

3.Then run the cPanel chpass script with the cPanel account name and new password:

cpanelusername is the cPanel account name and newpassword… Read More »

View the body and/or header of a queued exim message

View the body and/or header of a queued exim message If you already know the email’s ID (if you dont: Review Exim’s Queue), printing the header and/or body information is simple! For this example, we’ll use ‘1XSY5g-0001kh-N6’ as the email ID but this ID is unique to each email message – yours will be different.… Read More »

Category: VPS

List messages in exim queue from command line

List messages in exim queue from command line If you already know how many emails are in the queue and want to see certain short information regarding each email in the queue, you can print a list of the emails currently queued by performing this command:

If you have a lot of emails in… Read More »

Category: VPS