OpenVPN with CSF firewall rules

02. February 2017 CentOS, RHEL, SysAdmin 0
OpenVPN with CSF firewall rules
We are a big fan of OpenVPN when it comes to security. Many organizations have already switched to OpenVPN from PPTP etc. NixVPN is my favorite VPN software to host it on a standalone instance. But what if, if you already have a server protected with CSF firewall, and you want to install OpenVPN by ...

Disable SU access for sudo users

11. January 2017 AWS, CentOS, RHEL 0
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 account unnecessarily Lets see how to do it Edit the /etc/suoders by running visudo visudo Add the below Command Alias Cmnd_Alias BLOCKSU = /bin/su ...

How to log all sudo commands

11. January 2017 RHEL 0
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 to the Defaults section [sociallocker] Defaults logfile=/var/log/sudo [/sociallocker] Now all the commands from a sudo user will be logged in /var/log/sudo file. [[email protected] ~]# cat /var/log/sudo ...

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

15. September 2016 CentOS, RHEL, SysAdmin 0
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[1]: Starting The Apache HTTP Server... Sep 15 06:18:24 server.example.com httpd[15037]: [Thu Sep 15 06:18:24.591424 2016] [so:warn] [pid 15037] AH01574: module ruid2_module is alread...skipping Sep 15 06:18:33 server.example.com systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE Sep 15 06:18:33 ...

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

14. June 2016 CentOS, RHEL 0
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 install the below two packages, kernel-headers and kernel-devel You can run the below command to install those via yum. ...