Author Archives: admin

A must have handy CD/DVD/USB for Linux Admins: Knoppix Linux Live CD

A must have handy tool for Linux Admins: Knoppix Knoppix is Linux Live CD, with a collection of GNU/Linux software, automatic hardware detection, and support for most of the graphics card, sound cards, SCSI and USB devices and other peripherals. Knoppix can be used as a Linux demo, educational CD, rescue system, there is no… Read More »

How to check if a service is running or not in a Linux Machine

In this example’s  iam checking the servicename “iptables” Method 1: Using the service name Example: #service iptables status Output of the above command #iptables(pid 3243) is running… Method 2: Using init.d scripts from the /etc/init.d folder Example: #/etc/init.d/iptables status Output of the above command #iptables start/running, process 3231 Method3: Using status command Example: #status iptables… Read More »

Important Port Number’s a System Admin Should Know..

Portnumber……..Service 22…………….SSH 25…………….SMTP 23…………….TELNET 53…………….DNS 80…………….HTTP 443……………HTTPS 110……………pop3 465……………SMTP(SSL) 143……………IMAP4 993……………IMAP4(SSl) 2082…………..cpanel 2083…………..cpanel(SSL) 3128…………..Squid 3306…………..MySql 5432…………..PortgreSQL

MySQL Hardening on Production Servers

TABLE OF CONTENTS 1.     Run MySql under other user id and gid. 2.     Protect root account of MySql with strong password. 3.     Prevent anonymous access to MySql 4.     Regulate PROCESS , SUPER privilege to administrative users 5.     Regulate the File privilege only to administrative users 6.     Start up MySQL with the parameter to disable the… Read More »

Capture raw traffic using tcpdump

tcpdump is a powerful command-line packet analyzer, its an excellent way to capture raw traffic and then run it through various tools later. Example to use tcpdump &  exclude my ssh session traffic. tcpdump -i eth0  -s 1500 port not 22 Example to skip additional ports including ssh port: tcpdump -i eth0  -s 1500 port… Read More »

Linux Directory Structure

/bin – This directory contains most non-privileged system commands such as ls, mkdir, rm, etc. /boot – Contains the systems boot image, boot loader, and the kernel /dev – Contains Symbolic links to system devices such as optical and removable drives /etc – Contains all system configuration files and most configurations for installed packages /home… Read More »

How to setup Network bonding in Linux ?

Network  bonding /NIC teaming  is the bonding together of two or more physical network interfaces so that they appear as one logical device. Advantages of network bonding  Improvement in network performance by increasing the link speed beyond the limits of one single network card. Increasing the redundancy for higher availability.(two 1GB network cards bonded together… Read More »