Thursday, October 19, 2017
jailed-vsftp

VSFTP chroot jail users – Limit FTP users access to home directory

Lets see how we can configure a secure FTP server on CentOS  RHEL 6 / 7 First, you need to install the vsftp package on your server yum install -y vsftpd Once installed, lets start editing...
sudo-su

Disable SU access for sudo users

Some times you need to disable sudo su - access on your environment so that the users will use sudo command always and they will not switch to any other users...
sudo

How to log all sudo commands

Some times it's necessary to log all the sudo commands run in your environment. Let'ss see how to achieve this. Edit the sudoers file by running visudo visudo Add the below line...
apache-web-server

httpd.service: main process exited kill: cannot find process “”

Today apache was stuck with the below error and it was not starting at all. Sep 15 06:18:24 server.example.com systemd: Starting The Apache HTTP Server... Sep 15 06:18:24 server.example.com httpd: AH01574: module...
kernel-headers

The path “” is not a valid path to the kernel headers

Issue You are trying to install vmware-tools on RHEL / CentOS 7 You are stuck with the below error. The path "" is not a valid path to the 3.10.0-327.el7.x86_64 kernel headers. Solution You have to...
postfix-mail-server

fatal: parameter inet_interfaces: no local interface found for ::1

Issue You are note able to restart / start postfix and getting the below error. fatal: parameter inet_interfaces: no local interface found for ::1 Solution Edit the file /etc/postfix/main.cf vim /etc/postfix/main.cf search for...
centos7

CentOS 7 / RHEL 7 – AWS ec2 – how to set hostname persistent...

Issue how to set hostname persistent across reboots in CentOS 7 / RHEL 7 on AWS ec2 CentOS 7 / RHEL 7 Hostname changes after reboots in aws ec2 Solution Set the hostname with the...

How to Change the boot order in grub2 RHEL / CentOS 7

Issue How to change the boot order in RHEL 7 / CentOS 7 / OEL 7 How to set default boot to windows on Dual boot on the above environments. Solution In boot...