Author Archives: ANUP PRADHAN

IP block causes and solutions

Introduction: IP blocking, a common occurrence in online interactions, occurs when a specific IP address is restricted from accessing certain services or websites. This measure is often taken to mitigate security risks or to enforce compliance with terms of service. Understanding the causes behind IP blocks is crucial for resolving these issues effectively. Causes of… Read More »

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: root@server[#] vi /etc/csf/csf.conf 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: root@server[#] csf -r If you want to… 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: /scripts/createacct hyderabadwebhosting.in hyderaba q1w2e3r4 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 |… 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: grep username /etc/userdomains use the following command after you get the domain name: less /usr/local/apache/domlogs/domain.com | awk ‘{print $1}’ | sort… 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: export ALLOW_PASSWORD_CHANGE=1 3.Then run the cPanel chpass script with the cPanel account name and new password: /scripts/chpass cpanelusername newpassword cpanelusername is the cPanel account… 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