How to forcefully send mail from mailq in sendmail MTA
| |

How to forcefully send mail from mailq in sendmail MTA

How to forcefully send mail from mailq in sendmail MTA Sendmail is one of the open source MTA (Mail Transfer Agent) which is widely use in linux operating system. Many times because of high load average of Mail Server and also due to high no. of deffered emails in mail queue, many emails are not…

find command to search keyword in files recursively in linux
|

find command to search keyword in files recursively in linux

find command to search keyword in files recursively in linux Find command is one of the system command which is useful to search files and directory. It has many used and you can modify your search by using -exec flag. Here I am using exec with grep command. By below given command you can find…

How to use grep command to get fixed pattern or exact keyword
|

How to use grep command to get fixed pattern or exact keyword

How to use grep command to get fixed pattern or exact keyword In this post this is a small trick about How to use grep command to get fixed pattern or exact keyword in files. grep command is useful in searching the keyword in files. Without using any flag the grep command will show the…

How to find when Operating system was installed in linux CentOS and Red Hat
|

How to find when Operating system was installed in linux CentOS and Red Hat

How to find when Operating system was installed in linux CentOS and Red Hat This is a short video to know how you can find out on which date the linux was installed. It is applicable to Red Hat based linux distro. Step 1 : First find out the basesystem rpm. rpm -qa|grep basesystem Step…

How to protect from port scanning and smurf attack in Linux Server by iptables
|

How to protect from port scanning and smurf attack in Linux Server by iptables

In this post I will share the iptable script in which we will learn How to protect from port scanning and smurf attack in Linux Server. Features Of Script : (1) When a attacker try to port scan your server, first because of iptable attacker will not get any information which port is open. Second…

Could not find make anywhere!!!  Please edit the config section to include the path to make. at ./install.pl line 2101

Could not find make anywhere!!! Please edit the config section to include the path to make. at ./install.pl line 2101

While installing the psad 2.2.1 I got this error : [*] Could not find make anywhere!!! Please edit the config section to include the path to make. at ./install.pl line 2101 . After checking the perl scipt means install.pl file I found the it was looking for make command. I try to search with command…

AttributeError: ‘WSGIRequest’ object has no attribute ‘session’ Django python web framework
|

AttributeError: ‘WSGIRequest’ object has no attribute ‘session’ Django python web framework

While working on Django I got this error message “AttributeError: ‘WSGIRequest’ object has no attribute ‘session’” To solve this issue it is just 2 steps away. I hope you already know about how to start and stop the python based django. Step 1: Edit the settings.py file.And add the following line. Replace the FQDN with…

WordPress host IP changed not able to open wp-admin and site page looks scattered
|

WordPress host IP changed not able to open wp-admin and site page looks scattered

WordPress host IP changed not able to open wp-admin and site page looks scattered Today I was working on my Virtual Machine in my laptop and was trying to check some theme options.In Virtual Machine I have set ip address to be taken dynamically from DHCP server.Today my wifi change the ip address of Virtual…

Error: Could not stat() command file ‘/var/lib/nagios3/rw/nagios.cmd’!
| |

Error: Could not stat() command file ‘/var/lib/nagios3/rw/nagios.cmd’!

Error: Could not stat() command file ‘/var/lib/nagios3/rw/nagios.cmd’! While working on Nagios Server in Ubuntu 12.04 LTS,I was setting external command and stuck with this error message. To solve the problem follow these commands sudo /etc/init.d/nagios3 stop sudo dpkg-statoverride –update –add nagios www-data 2710 /var/lib/nagios3/rw sudo dpkg-statoverride –update –add nagios nagios 751 /var/lib/nagios3 sudo /etc/init.d/nagios3 start…