Showing posts with label servers. Show all posts
Showing posts with label servers. Show all posts

Wednesday, 27 June 2012

SFTP Chroot Jailing - Restricting users to their individual home directories

Secure FTP Chroot jailing 
In this article, I am going to explain you how to enable chroot jailing on sftp which means that sftp users can view and edit only within their home directories only. By default sftp users have shell access to access other users home directories and they also have access under / directories. Let us see how to restrict sftp users within their home directories.



Step 1: Creating chroot directory to secure /home



#mkdir /chroot/home

Postfix mail queue and its operations


Postfix mail queue
In this article, I am going to explain you how flush a postfix mail queue and its operation in details. Suppose if you are handling a MTA(Mail Transfer Agent) then you must have to know about these. Basically postfix consists of four different types of  queues such as


* active queue - it is limited size queue which contains mails to be sent out.
* deferred queue - mails that cannot be delivered will stored in the deferred queue.
* incoming queue - mails from network will first enter in to incoming queue and after some cleanup it will give it to active queue for mail delivery.
* maildrop queue - it consists of locally posted mails.

Saturday, 2 June 2012

How to install nagios on RHEL 6 / CentOS 6


                                                  How to install nagios on RHEL 6 / CentOS 6  
                        
Nagios is a powerful network monitoring tool in the opensource community. Here I  explained how to install nagios on RHEL 6/CENTOS 6. In addition to that I added how to bind nagios with NRPE plugin.

Step 1: Install the following required packages if not present

# yum install httpd php

# yum install gcc glibc glibc-common

# yum install gd gd-devel

Step 2: Create an account Information

Configuring httpd on RHEL 6 / Centos 6



[root@client129 httpd-2.4.1]# ./configure --enable-ssl --enable-so
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu

Configuring Apache Portable Runtime library ...

checking for APR... no
configure: error: APR not found.  Please read the documentation.