<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3321470074006259731</id><updated>2024-10-09T12:15:14.027-07:00</updated><category term="System Administration"/><category term="Sendmail"/><category term="Linux Interviews FAQ"/><category term="Apache"/><category term="General"/><category term="PHP"/><category term="Backup"/><category term="Bash Scripting"/><category term="Howtos"/><category term="ISP relay Sendmail"/><category term="MYSQL"/><category term="Pattern Parser"/><category term="Python"/><category term="Relay using sendmail"/><category term="Search Engine Optimization"/><category term="Stop Spamming in sendmail"/><category term="admnote"/><category term="checking network on linux"/><category term="find first instance using grep"/><category term="grep"/><category term="grep filename"/><category term="grep pattern"/><category term="install mod security"/><category term="lock tables"/><category term="modsecurity"/><category term="network analyzer"/><category term="network latency linux"/><category term="packet analyzing"/><category term="sendmail access table"/><category term="sendmail block recipient"/><category term="sendmail block sender"/><category term="sendmail centos"/><category term="sendmail centos5.4"/><category term="tcpdump options"/><category term="welcome"/><category term="yum install"/><category term="yum upgrade"/><title type='text'>Linux Howtos, Linux Tutorials</title><subtitle type='html'>Linux Howtos, Linux Tutorials, Linux Videos and Discussion Board for Newbies to Professional and experts</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://linuxmaza.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3321470074006259731/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://linuxmaza.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/3321470074006259731/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Ashwin</name><uri>http://www.blogger.com/profile/09991847790833662522</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>43</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3321470074006259731.post-2463759721864765677</id><published>2010-07-10T04:29:00.000-07:00</published><updated>2010-07-18T23:37:12.375-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ISP relay Sendmail"/><category scheme="http://www.blogger.com/atom/ns#" term="Relay using sendmail"/><category scheme="http://www.blogger.com/atom/ns#" term="Sendmail"/><category scheme="http://www.blogger.com/atom/ns#" term="sendmail centos"/><category scheme="http://www.blogger.com/atom/ns#" term="sendmail centos5.4"/><title type='text'>Using Sendmail to Relay Mails from Your MSP/ISP in Centos, RHEL, Ubuntu&#xa;and Other Linux Distros</title><content type='html'>Do you want to relay mails from your local sendmail server to your ISP.  Just follow the below steps&lt;br/&gt;&lt;pre&gt;&lt;br/&gt;Open sendmail.mc using default editor vi, edit, emacs&lt;br/&gt;# vi /etc/mail/sendmail.mc&lt;br/&gt;&lt;br/&gt;define(`SMART_HOST&#39;,`[smtp.yourisphost.com]&#39;)&lt;br/&gt;FEATUREdnl&lt;br/&gt;&lt;/pre&gt;&lt;br/&gt;Save the File and exit&lt;br/&gt;Open the File authinfo (If not Present Create a New File).&lt;br/&gt;&lt;br/&gt;&lt;pre&gt;&lt;br/&gt;vi /etc/mail/authinfo&lt;br/&gt;Add the following Line&lt;br/&gt;&quot;AuthInfo:smtp.yourisphost.com &quot;U:UsernamefromISP&quot; &quot;P:passwordfromISP&quot; &quot;M:LOGIN PLAIN&quot;&lt;br/&gt;&lt;/pre&gt;&lt;br/&gt;Save the File and Exit&lt;br/&gt;&lt;br/&gt;Just run the below commands to recreate the sendmail.cf file&lt;br/&gt;&lt;pre&gt;&lt;br/&gt;# cd /etc/mail/&lt;br/&gt;# m4 sendmail.mc &gt; sendmail.cf&lt;br/&gt;&lt;/pre&gt;&lt;br/&gt;Make Map will recreate the database for authinfo to be used in sendmail&lt;br/&gt;&lt;pre&gt;&lt;br/&gt;# makemap hash /etc/mail/authinfo &lt; /etc/mail/authinfo&lt;br/&gt;&lt;/pre&gt;&lt;br/&gt;Restart the Sendmail Service and check if All&#39;s Good !!!&lt;br/&gt;&lt;pre&gt;&lt;br/&gt;# /etc/init.d/sendmail restart&lt;br/&gt;&lt;/pre&gt;&lt;br/&gt;&lt;pre&gt;&lt;br/&gt;echo &#39;/map authinfo AuthInfo:smtp.yourisphost.com&#39; | /usr/sbin/sendmail -bt&lt;br/&gt;&lt;br/&gt;&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;Sent Mail Check in Logs &lt;br/&gt;&lt;br/&gt;Enjoy.....&lt;br/&gt;&lt;br/&gt;Comment if issues or modification required.</content><link rel='replies' type='application/atom+xml' href='http://linuxmaza.blogspot.com/feeds/2463759721864765677/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxmaza.blogspot.com/2010/07/using-sendmail-to-relay-mails-from-your.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3321470074006259731/posts/default/2463759721864765677'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3321470074006259731/posts/default/2463759721864765677'/><link rel='alternate' type='text/html' href='http://linuxmaza.blogspot.com/2010/07/using-sendmail-to-relay-mails-from-your.html' title='Using Sendmail to Relay Mails from Your MSP/ISP in Centos, RHEL, Ubuntu&#xa;and Other Linux Distros'/><author><name>Ashwin</name><uri>http://www.blogger.com/profile/09991847790833662522</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3321470074006259731.post-7973804168988500223</id><published>2010-07-10T04:06:00.000-07:00</published><updated>2010-07-18T23:37:03.857-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="find first instance using grep"/><category scheme="http://www.blogger.com/atom/ns#" term="grep"/><category scheme="http://www.blogger.com/atom/ns#" term="grep filename"/><category scheme="http://www.blogger.com/atom/ns#" term="grep pattern"/><category scheme="http://www.blogger.com/atom/ns#" term="Pattern Parser"/><category scheme="http://www.blogger.com/atom/ns#" term="System Administration"/><title type='text'>Finding First Instance of the Pattern Using Grep in Linux</title><content type='html'>&lt;strong&gt;Grep in Linux&lt;/strong&gt;&lt;br/&gt;Have you ever faced a problem grepping (Parsing) for a pattern from a file, Definately being a Linux Administrator you have done it several times but have you came across a situation where from a huge file you only have to parse the first instance of the pattern, grepping the whole file for a pattern will be tedious and will be using more system resources especially when you are doing it using a script (Using Loop for, while, until)&lt;br/&gt;&lt;br/&gt;The easy solution to tackle the problem is to use grep with inbuilt option which will display only the first instances instead of checking the whole file and than printing the first line using head command.&lt;br/&gt;&lt;br/&gt;&lt;pre&gt;&lt;br/&gt;Command :&lt;br/&gt;grep -m 1 &quot;pattern&quot; filename.txt&lt;br/&gt;&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;The &quot;-m&quot; option when passed with grep will search for the first matching pattern from the file and print the output same-way if you want to look for first 2 instances pass option &quot;grep -m 2 &quot;pattern&quot; yourfilename.log&quot;&lt;br/&gt;&lt;br/&gt;Enjoy...</content><link rel='replies' type='application/atom+xml' href='http://linuxmaza.blogspot.com/feeds/7973804168988500223/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxmaza.blogspot.com/2010/07/finding-first-instance-of-pattern-using.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3321470074006259731/posts/default/7973804168988500223'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3321470074006259731/posts/default/7973804168988500223'/><link rel='alternate' type='text/html' href='http://linuxmaza.blogspot.com/2010/07/finding-first-instance-of-pattern-using.html' title='Finding First Instance of the Pattern Using Grep in Linux'/><author><name>Ashwin</name><uri>http://www.blogger.com/profile/09991847790833662522</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3321470074006259731.post-2881482060766152650</id><published>2010-07-09T07:53:00.000-07:00</published><updated>2010-07-18T23:36:58.085-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Sendmail"/><category scheme="http://www.blogger.com/atom/ns#" term="sendmail access table"/><category scheme="http://www.blogger.com/atom/ns#" term="sendmail block recipient"/><category scheme="http://www.blogger.com/atom/ns#" term="sendmail block sender"/><category scheme="http://www.blogger.com/atom/ns#" term="Stop Spamming in sendmail"/><title type='text'>Blocking Specific Sender to Specific Recipient or IPs Spamming Using&#xa;Sendmail in Linux</title><content type='html'>Maintaining a MailServer is really a all time headache for Mail Server Admins, specifically to prevent SPAM relayed from you Server or delivered to your server.&lt;br/&gt;&lt;br/&gt;In this article we would use some inbuilt feature of Sendmail to block users from sending mail to specific users or domains, this can be attained in many ways but i have done it in the below manner. For any issues please comment at the bottom of the post.&lt;br/&gt;&lt;br/&gt;Sendmail is Oldest Mail transfer agent used by major of the MSP&#39;s (Mail Service Providers) all over the world, with its huge forum, mailing list and IRC Support and help it has gained high name within its competitors.&lt;br/&gt;&lt;br/&gt;When Do i need to block a user or IP?&lt;br/&gt;Reasons Are Many&lt;br/&gt;1. Spamming done from your domain.&lt;br/&gt;2. Spamming happening from outside to your server.&lt;br/&gt;3. Spamming from a particular IP.&lt;br/&gt;4. Wants to reject relaying mail for a user (Used incase allowed to just fetch mails, no sending allowed)&lt;br/&gt;5. Any Many More...........&lt;br/&gt;&lt;br/&gt;To block the user or IP we will be using access file / database included in the sendmail, Access Database provides a single, central database with rules to accept, reject, and discard messages based on the sender name, address, or IP number. It is enabled with the access_db configuration feature.&lt;br/&gt;&lt;br/&gt;1. Enable the Access Database in Sendmail&lt;br/&gt;You have to make add or declare the following lines in your sendmail.mc file&lt;br/&gt;&lt;pre&gt;&lt;br/&gt;FEATURE(`access_db&#39;)&lt;br/&gt;&lt;/pre&gt;&lt;br/&gt;The above line added in the sendmail.mc enables use of the access database, and enables the default database type and path as: &lt;br/&gt;&lt;pre&gt;&lt;br/&gt;hash /etc/mail/access&lt;br/&gt;&lt;/pre&gt;&lt;br/&gt;2. Create the access Database&lt;br/&gt;Edit the File /etc/mail/access, the entries should be inorder&lt;br/&gt;&lt;pre&gt;&lt;br/&gt;key	value&lt;br/&gt;&lt;/pre&gt;&lt;br/&gt;The lefthand column is the key which is composed of a prefix and an address expression, this can contain hostname, email address, IP address, networks etc&lt;br/&gt;&lt;br/&gt;The righthand column contains the value, which can be keywords or values that determine what should be done with the item described on the left or in a layman langauge the action to be executed, the preferable values are OK, RELAY, REJECT, DISCARD, SKIP, ERROR:XYZ text.&lt;br/&gt;&lt;br/&gt;Eg :&lt;br/&gt;&lt;pre&gt;&lt;br/&gt;spam@goo.gle.com REJECT&lt;br/&gt;10.0.0.35 REJECT&lt;br/&gt;192.168.1.100/255.0.0.0 REJECT&lt;br/&gt;From:spammer@somedomain.com REJECT&lt;br/&gt;To:trusteddomain.org RELAY&lt;br/&gt;Connect:2trusteddomain.com OK&lt;br/&gt;Connect:ashwin.com RELAY&lt;br/&gt;From:good@domain.com OK&lt;br/&gt;From:anotherbaddomain.com REJECT&lt;br/&gt;&lt;/pre&gt;&lt;br/&gt;To be able to block specific sender to specific recipient you need to add the following line in sendmail.mc to enable compat.&lt;br/&gt;&lt;pre&gt;FEATURE(`check_compat&#39;)&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;Then make the following entries in access file (Location : /etc/mail/access)&lt;br/&gt;&lt;br/&gt;&lt;pre&gt;Compat:extsender@mydomain.com&lt;@&gt;recipient@outdomain.com DISCARD&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;After confirming all the entries as per your requirement in access file, we have to recreate the access in hash database for which execute the below command&lt;br/&gt;&lt;pre&gt;&lt;br/&gt;cd /etc/mail&lt;br/&gt;&lt;br/&gt;makemap hash access &lt; access&lt;br/&gt;&lt;br/&gt;m4 /etc/mail/sendmail.mc &gt; /etc/mail/sendmail.cf&lt;br/&gt;&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;Restart the sendmail service&lt;br/&gt;&lt;pre&gt;/etc/init.d/sendmail restart&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;Testing&lt;br/&gt;&lt;pre&gt;&lt;br/&gt;telnet to_your_mailserver_ip 25&lt;br/&gt;mail from:internaluser@example.com&lt;br/&gt;Ok&lt;br/&gt;rcpt to:spam@goo.gle.com&lt;br/&gt;REJECTED&lt;br/&gt;&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;Enjoy..</content><link rel='replies' type='application/atom+xml' href='http://linuxmaza.blogspot.com/feeds/2881482060766152650/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxmaza.blogspot.com/2010/07/blocking-specific-sender-to-specific.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3321470074006259731/posts/default/2881482060766152650'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3321470074006259731/posts/default/2881482060766152650'/><link rel='alternate' type='text/html' href='http://linuxmaza.blogspot.com/2010/07/blocking-specific-sender-to-specific.html' title='Blocking Specific Sender to Specific Recipient or IPs Spamming Using&#xa;Sendmail in Linux'/><author><name>Ashwin</name><uri>http://www.blogger.com/profile/09991847790833662522</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3321470074006259731.post-6433074477201334707</id><published>2010-07-08T07:38:00.000-07:00</published><updated>2010-07-18T23:36:57.747-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="checking network on linux"/><category scheme="http://www.blogger.com/atom/ns#" term="network analyzer"/><category scheme="http://www.blogger.com/atom/ns#" term="network latency linux"/><category scheme="http://www.blogger.com/atom/ns#" term="packet analyzing"/><category scheme="http://www.blogger.com/atom/ns#" term="System Administration"/><category scheme="http://www.blogger.com/atom/ns#" term="tcpdump options"/><title type='text'>Packet Capturing and Analayzing packets Using TCPDUMP on Centos,&#xa;Fedora, Ubuntu and other Linux Distros</title><content type='html'>Many a times Linux System Admin2 face problem in network latency, connectivity the servers hampers the services which impact to the business. Using linux basic tools can not really solve it but you can identify the issues faced by the host to host or host to the device.&lt;br/&gt;&lt;br/&gt;Here we will be using tcpdump tool to capture packet after which you can analyse the data and conclude with errors host.&lt;br/&gt;If you have installed linux properly tcpdump is by default installed on to your system, and if not you can install it finding the relevant packages for your distros&lt;br/&gt;&lt;br/&gt;RPM Based Linux can google for &quot;tcpdump +rpm&quot;  and Debian can google for &quot;tcpdump +deb&quot;, you will get enough results to finish installing the TCPDUMP package onto your system.&lt;br/&gt;&lt;br/&gt;After installing, check if tcpdump is installed successfully executing the below command&lt;br/&gt;&lt;br/&gt;&lt;pre&gt; #&gt;which tcpdump&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;Should return the binary location of the package installed&lt;br/&gt; &lt;br/&gt;&lt;pre&gt;/usr/sbin/tcpdump&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;After confirming you can run tcpdump with various options passing to the command to check for the options&lt;br/&gt;&lt;br/&gt;&lt;pre&gt;[root@ashwin ~]# tcpdump --help&lt;br/&gt;tcpdump version 3.9.8&lt;br/&gt;libpcap version 0.9.8&lt;br/&gt;Usage: tcpdump [-aAdDeflLnNOpqRStuUvxX] [-c count] [ -C file_size ]&lt;br/&gt;		[ -E algo:secret ] [ -F file ] [ -i interface ] [ -M secret ]&lt;br/&gt;		[ -r file ] [ -s snaplen ] [ -T type ] [ -w file ]&lt;br/&gt;		[ -W filecount ] [ -y datalinktype ] [ -Z user ]&lt;br/&gt;		[ expression ]&lt;br/&gt;&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;We will be capturing packets for 2 minutes and analyze for any issues with hosts connecting to and from.&lt;br/&gt;&lt;br/&gt;Running the below command will capture all the packets transferring between the hosts through the Network Interface Cards and will be redirected to a file&lt;br/&gt;&lt;br/&gt;&lt;pre&gt;tcpdump -n -i bond0 -e -vvv &gt; output.log&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;Once you have captured packets for 5 minutes press Ctrl + z to end and proceed with analyzing the file &quot;output.log&quot;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Example :&lt;br/&gt;&lt;br/&gt;2.39.omserv &gt; 11.240.240.141.nfs: ., cksum 0x1eba (correct), 156:156(0) ack 28961 win 30782 &lt;nop,nop,timestamp 106310070 5606727&gt;&lt;br/&gt;18:41:21.397883 00:a0:98:10:7a:05 &gt; 00:21:5a:4c:a6:3e, ethertype IPv4 (0x0800), length 1514: (tos 0x0, ttl  64, id 26738, offset 0, flags [DF], proto: TCP (6), length: 1500) 11.240.240.141.2049 &gt; 11.240.240.39.33554432: reply ERR 1448&lt;br/&gt;&lt;br/&gt;In the above line its clear that a partition is mounted on the host using NFS protocol from other hosts having IP 11.240.240.141 which is having issues while transferring data to host bearing IP 11.240.240.39 Error &quot;reply ERR 1448&quot;&lt;br/&gt;&lt;br/&gt;You can find great detail in the output of tcpdump, Also you can use wireshark to read the output.txt and get a better clarity of the data transmission hence lot of network latency can be resolved.&lt;br/&gt;&lt;br/&gt;Enjoy.</content><link rel='replies' type='application/atom+xml' href='http://linuxmaza.blogspot.com/feeds/6433074477201334707/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxmaza.blogspot.com/2010/07/packet-capturing-and-analayzing-packets_08.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3321470074006259731/posts/default/6433074477201334707'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3321470074006259731/posts/default/6433074477201334707'/><link rel='alternate' type='text/html' href='http://linuxmaza.blogspot.com/2010/07/packet-capturing-and-analayzing-packets_08.html' title='Packet Capturing and Analayzing packets Using TCPDUMP on Centos,&#xa;Fedora, Ubuntu and other Linux Distros'/><author><name>Ashwin</name><uri>http://www.blogger.com/profile/09991847790833662522</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3321470074006259731.post-8540807343708853188</id><published>2010-07-08T07:32:00.000-07:00</published><updated>2010-07-18T23:36:57.738-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="System Administration"/><title type='text'>Packet Capturing and Analayzing packets Using TCPDUMP on Centos,&#xa;Fedora, Ubuntu and other Linux Distros</title><content type='html'></content><link rel='replies' type='application/atom+xml' href='http://linuxmaza.blogspot.com/feeds/8540807343708853188/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxmaza.blogspot.com/2010/07/packet-capturing-and-analayzing-packets.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3321470074006259731/posts/default/8540807343708853188'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3321470074006259731/posts/default/8540807343708853188'/><link rel='alternate' type='text/html' href='http://linuxmaza.blogspot.com/2010/07/packet-capturing-and-analayzing-packets.html' title='Packet Capturing and Analayzing packets Using TCPDUMP on Centos,&#xa;Fedora, Ubuntu and other Linux Distros'/><author><name>Ashwin</name><uri>http://www.blogger.com/profile/09991847790833662522</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3321470074006259731.post-8503654097763278864</id><published>2010-06-29T05:21:00.000-07:00</published><updated>2010-07-18T23:36:55.001-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="lock tables"/><category scheme="http://www.blogger.com/atom/ns#" term="System Administration"/><category scheme="http://www.blogger.com/atom/ns#" term="yum install"/><category scheme="http://www.blogger.com/atom/ns#" term="yum upgrade"/><title type='text'>Solved : Lock table is out of available locker entries - Yum install,&#xa;yum upgrade</title><content type='html'>Recently faced a issue while installing a package using yum&lt;br/&gt;&lt;br/&gt;&lt;pre&gt;&lt;br/&gt;[root@back ~]# yum install mod-security&lt;br/&gt;rpmdb: Lock table is out of available locker entries&lt;br/&gt;rpmdb: Unknown locker ID: 3077&lt;br/&gt;error: db4 error(22) from db-&gt;close: Invalid argument&lt;br/&gt;error: cannot open Packages index using db3 - Cannot allocate memory (12)&lt;br/&gt;error: cannot open Packages database in /var/lib/rpm&lt;br/&gt;Traceback (most recent call last):&lt;br/&gt;  File &quot;/usr/bin/yum&quot;, line 29, in ?&lt;br/&gt;    yummain.main(sys.argv[1:])&lt;br/&gt;  File &quot;/usr/share/yum-cli/yummain.py&quot;, line 85, in main&lt;br/&gt;    base.getOptionsConfig(args)&lt;br/&gt;  File &quot;/usr/share/yum-cli/cli.py&quot;, line 163, in getOptionsConfig&lt;br/&gt;    disabled_plugins=self.optparser._splitArg(opts.disableplugins))&lt;br/&gt;  File &quot;/usr/lib/python2.4/site-packages/yum/__init__.py&quot;, line 164, in _getConfig&lt;br/&gt;    self._conf = config.readMainConfig(startupconf)&lt;br/&gt;  File &quot;/usr/lib/python2.4/site-packages/yum/config.py&quot;, line 685, in readMainConfig&lt;br/&gt;    yumvars[&#39;releasever&#39;] = _getsysver(startupconf.installroot, startupconf.distroverpkg)&lt;br/&gt;  File &quot;/usr/lib/python2.4/site-packages/yum/config.py&quot;, line 752, in _getsysver&lt;br/&gt;    idx = ts.dbMatch(&#39;provides&#39;, distroverpkg)&lt;br/&gt;TypeError: rpmdb open failed&lt;br/&gt;&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;Googling and Searching on this topic got it resolved&lt;br/&gt;&lt;pre&gt;&lt;br/&gt;[root@back ~]# ll /var/lib/rpm/&lt;br/&gt;Basenames       __db.000        __db.002        Dirnames        Group           Name            Providename     Pubkeys         Requireversion  Sigmd5          &lt;br/&gt;Conflictname    __db.001        __db.003        Filemd5s        Installtid      Packages        Provideversion  Requirename     Sha1header      Triggername     &lt;br/&gt;[root@back ~]# ll /var/lib/rpm/&lt;br/&gt;Basenames       __db.000        __db.002        Dirnames        Group           Name            Providename     Pubkeys         Requireversion  Sigmd5          &lt;br/&gt;Conflictname    __db.001        __db.003        Filemd5s        Installtid      Packages        Provideversion  Requirename     Sha1header      Triggername     &lt;br/&gt;&lt;/pre&gt;&lt;br/&gt;&lt;pre&gt;&lt;br/&gt;[root@back ~]# rm /var/lib/rpm/_db.00*&lt;br/&gt;rm: cannot lstat `/var/lib/rpm/_db.00*&#39;: No such file or directory&lt;br/&gt;[root@back ~]# rm /var/lib/rpm/__db.00*&lt;br/&gt;rm: remove regular empty file `/var/lib/rpm/__db.000&#39;? y&lt;br/&gt;rm: remove regular file `/var/lib/rpm/__db.001&#39;? y&lt;br/&gt;rm: remove regular file `/var/lib/rpm/__db.002&#39;? y&lt;br/&gt;rm: remove regular file `/var/lib/rpm/__db.003&#39;? y&lt;br/&gt;&lt;/pre&gt;&lt;br/&gt;&lt;pre&gt;[root@back ~]# rpm --rebuilddb&lt;/pre&gt;&lt;br/&gt;&lt;pre&gt;&lt;br/&gt;[root@back ~]# yum install mod-security&lt;br/&gt;utterramblings            100% |=========================|  951 B    00:00     &lt;br/&gt;primary.xml.gz            100% |=========================|  22 kB    00:00     &lt;br/&gt;utterrambl: ################################################## 64/64&lt;br/&gt;extras                    100% |=========================| 2.1 kB    00:00     &lt;br/&gt;primary.sqlite.bz2        100% |=========================| 184 kB    00:38     &lt;br/&gt;updates                   100% |=========================| 1.9 kB    00:00     &lt;br/&gt;primary.sqlite.bz2        100% |=========================| 254 kB    00:28     &lt;br/&gt;base                      100% |=========================| 2.1 kB    00:00     &lt;br/&gt;primary.sqlite.bz2        100% |=========================| 1.6 MB    00:17     &lt;br/&gt;c5-testing                100% |=========================| 1.9 kB    00:00     &lt;br/&gt;addons                    100% |=========================|  951 B    00:00     &lt;br/&gt;Setting up Install Process&lt;br/&gt;Parsing package install arguments&lt;br/&gt;No package mod-security available.&lt;br/&gt;Nothing to do&lt;br/&gt;[root@back ~]# yum install mod_security&lt;br/&gt;Setting up Install Process&lt;br/&gt;Parsing package install arguments&lt;br/&gt;Resolving Dependencies&lt;br/&gt;--&gt; Running transaction check&lt;br/&gt;---&gt; Package mod_security.i386 0:2.5.9-1.jason.1 set to be updated&lt;br/&gt;--&gt; Finished Dependency Resolution&lt;br/&gt;&lt;br/&gt;Dependencies Resolved&lt;br/&gt;&lt;br/&gt;=============================================================================&lt;br/&gt; Package                 Arch       Version          Repository        Size &lt;br/&gt;=============================================================================&lt;br/&gt;Installing:&lt;br/&gt; mod_security            i386       2.5.9-1.jason.1  utterramblings    1.2 M&lt;br/&gt;&lt;br/&gt;Transaction Summary&lt;br/&gt;=============================================================================&lt;br/&gt;Install      1 Package(s)         &lt;br/&gt;Update       0 Package(s)         &lt;br/&gt;Remove       0 Package(s)         &lt;br/&gt;&lt;br/&gt;Total download size: 1.2 M&lt;br/&gt;Is this ok [y/N]: y&lt;br/&gt;Downloading Packages:&lt;br/&gt;(1/1): mod_security-2.5.9 100% |=========================| 1.2 MB    00:03     &lt;br/&gt;warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 0d4306ef&lt;br/&gt;Importing GPG key 0x0D4306EF &quot;Jason Litka (http://www.jasonlitka.com) &lt;jasonlitka@verizon.net&gt;&quot; from http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka&lt;br/&gt;Is this ok [y/N]: y&lt;br/&gt;Running rpm_check_debug&lt;br/&gt;Running Transaction Test&lt;br/&gt;Finished Transaction Test&lt;br/&gt;Transaction Test Succeeded&lt;br/&gt;Running Transaction&lt;br/&gt;  Installing: mod_security                 ######################### [1/1] &lt;br/&gt;&lt;br/&gt;Installed: mod_security.i386 0:2.5.9-1.jason.1&lt;br/&gt;Complete!&lt;br/&gt;&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;This problem occurs when rpm accesses the Berkeley database files, it makes temporary locker entries within the tables while it searches for data. If you control-c your rpm processes often, this issue will occur much sooner because the locks are never cleared.</content><link rel='replies' type='application/atom+xml' href='http://linuxmaza.blogspot.com/feeds/8503654097763278864/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxmaza.blogspot.com/2010/06/solved-lock-table-is-out-of-available_3950.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3321470074006259731/posts/default/8503654097763278864'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3321470074006259731/posts/default/8503654097763278864'/><link rel='alternate' type='text/html' href='http://linuxmaza.blogspot.com/2010/06/solved-lock-table-is-out-of-available_3950.html' title='Solved : Lock table is out of available locker entries - Yum install,&#xa;yum upgrade'/><author><name>Ashwin</name><uri>http://www.blogger.com/profile/09991847790833662522</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3321470074006259731.post-1179754717675752882</id><published>2010-06-29T05:19:00.000-07:00</published><updated>2010-07-18T23:36:54.994-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="System Administration"/><title type='text'>Solved Lock table is out of available locker entries - Yum install, yum&#xa;upgrade</title><content type='html'></content><link rel='replies' type='application/atom+xml' href='http://linuxmaza.blogspot.com/feeds/1179754717675752882/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxmaza.blogspot.com/2010/06/solved-lock-table-is-out-of-available_29.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3321470074006259731/posts/default/1179754717675752882'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3321470074006259731/posts/default/1179754717675752882'/><link rel='alternate' type='text/html' href='http://linuxmaza.blogspot.com/2010/06/solved-lock-table-is-out-of-available_29.html' title='Solved Lock table is out of available locker entries - Yum install, yum&#xa;upgrade'/><author><name>Ashwin</name><uri>http://www.blogger.com/profile/09991847790833662522</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3321470074006259731.post-6185142400713342405</id><published>2010-06-29T05:17:00.000-07:00</published><updated>2010-07-18T23:36:54.986-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Sendmail"/><title type='text'>Solved : Lock table is out of available locker entries - Yum install,&#xa;yum upgrade</title><content type='html'>Recently faced a issue while installing a package using yum&lt;br/&gt;&lt;pre&gt;[root@back ~]# yum install mod-security&lt;br/&gt;rpmdb: Lock table is out of available locker entries&lt;br/&gt;rpmdb: Unknown locker ID: 3077&lt;br/&gt;error: db4 error(22) from db-&amp;gt;close: Invalid argument&lt;br/&gt;error: cannot open Packages index using db3 - Cannot allocate memory (12)&lt;br/&gt;error: cannot open Packages database in /var/lib/rpm&lt;br/&gt;Traceback (most recent call last):&lt;br/&gt;  File &quot;/usr/bin/yum&quot;, line 29, in ?&lt;br/&gt;    yummain.main(sys.argv[1:])&lt;br/&gt;  File &quot;/usr/share/yum-cli/yummain.py&quot;, line 85, in main&lt;br/&gt;    base.getOptionsConfig(args)&lt;br/&gt;  File &quot;/usr/share/yum-cli/cli.py&quot;, line 163, in getOptionsConfig&lt;br/&gt;    disabled_plugins=self.optparser._splitArg(opts.disableplugins))&lt;br/&gt;  File &quot;/usr/lib/python2.4/site-packages/yum/__init__.py&quot;, line 164, in _getConfig&lt;br/&gt;    self._conf = config.readMainConfig(startupconf)&lt;br/&gt;  File &quot;/usr/lib/python2.4/site-packages/yum/config.py&quot;, line 685, in readMainConfig&lt;br/&gt;    yumvars[&#39;releasever&#39;] = _getsysver(startupconf.installroot, startupconf.distroverpkg)&lt;br/&gt;  File &quot;/usr/lib/python2.4/site-packages/yum/config.py&quot;, line 752, in _getsysver&lt;br/&gt;    idx = ts.dbMatch(&#39;provides&#39;, distroverpkg)&lt;br/&gt;TypeError: rpmdb open failed&lt;br/&gt;&lt;/pre&gt;&lt;br/&gt;Googling and Searching on this topic got it resolved&lt;br/&gt;&lt;pre&gt;[root@back ~]# ll /var/lib/rpm/&lt;br/&gt;Basenames       __db.000        __db.002        Dirnames        Group           Name            Providename     Pubkeys         Requireversion  Sigmd5&lt;br/&gt;Conflictname    __db.001        __db.003        Filemd5s        Installtid      Packages        Provideversion  Requirename     Sha1header      Triggername&lt;br/&gt;[root@back ~]# ll /var/lib/rpm/&lt;br/&gt;Basenames       __db.000        __db.002        Dirnames        Group           Name            Providename     Pubkeys         Requireversion  Sigmd5&lt;br/&gt;Conflictname    __db.001        __db.003        Filemd5s        Installtid      Packages        Provideversion  Requirename     Sha1header      Triggername     &lt;br/&gt;&lt;br/&gt;&lt;pre&gt;[root@back ~]# rm /var/lib/rpm/_db.00*&lt;br/&gt;rm: cannot lstat `/var/lib/rpm/_db.00*&#39;: No such file or directory&lt;br/&gt;[root@back ~]# rm /var/lib/rpm/__db.00*&lt;br/&gt;rm: remove regular empty file `/var/lib/rpm/__db.000&#39;? y&lt;br/&gt;rm: remove regular file `/var/lib/rpm/__db.001&#39;? y&lt;br/&gt;rm: remove regular file `/var/lib/rpm/__db.002&#39;? y&lt;br/&gt;rm: remove regular file `/var/lib/rpm/__db.003&#39;? y&lt;br/&gt;&lt;/pre&gt;&lt;br/&gt;&lt;pre&gt;[root@back ~]# rpm --rebuilddb&lt;/pre&gt;&lt;br/&gt;[root@back ~]# yum install mod-security&lt;br/&gt;&lt;br/&gt;utterramblings            100% |=========================|  951 B    00:00&lt;br/&gt;&lt;br/&gt;primary.xml.gz            100% |=========================|  22 kB    00:00&lt;br/&gt;&lt;br/&gt;utterrambl: ################################################## 64/64&lt;br/&gt;&lt;br/&gt;extras                    100% |=========================| 2.1 kB    00:00&lt;br/&gt;&lt;br/&gt;primary.sqlite.bz2        100% |=========================| 184 kB    00:38&lt;br/&gt;&lt;br/&gt;updates                   100% |=========================| 1.9 kB    00:00&lt;br/&gt;&lt;br/&gt;primary.sqlite.bz2        100% |=========================| 254 kB    00:28&lt;br/&gt;&lt;br/&gt;base                      100% |=========================| 2.1 kB    00:00&lt;br/&gt;&lt;br/&gt;primary.sqlite.bz2        100% |=========================| 1.6 MB    00:17&lt;br/&gt;&lt;br/&gt;c5-testing                100% |=========================| 1.9 kB    00:00&lt;br/&gt;&lt;br/&gt;addons                    100% |=========================|  951 B    00:00&lt;br/&gt;&lt;br/&gt;Setting up Install Process&lt;br/&gt;&lt;br/&gt;Parsing package install arguments&lt;br/&gt;&lt;br/&gt;No package mod-security available.&lt;br/&gt;&lt;br/&gt;Nothing to do&lt;br/&gt;&lt;br/&gt;[root@back ~]# yum install mod_security&lt;br/&gt;&lt;br/&gt;Setting up Install Process&lt;br/&gt;&lt;br/&gt;Parsing package install arguments&lt;br/&gt;&lt;br/&gt;Resolving Dependencies&lt;br/&gt;&lt;br/&gt;--&amp;gt; Running transaction check&lt;br/&gt;&lt;br/&gt;---&amp;gt; Package mod_security.i386 0:2.5.9-1.jason.1 set to be updated&lt;br/&gt;&lt;br/&gt;--&amp;gt; Finished Dependency Resolution&lt;br/&gt;Dependencies Resolved&lt;br/&gt;=============================================================================&lt;br/&gt;&lt;br/&gt;Package                 Arch       Version          Repository        Size&lt;br/&gt;&lt;br/&gt;=============================================================================&lt;br/&gt;&lt;br/&gt;Installing:&lt;br/&gt;&lt;br/&gt;mod_security            i386       2.5.9-1.jason.1  utterramblings    1.2 M&lt;br/&gt;Transaction Summary&lt;br/&gt;&lt;br/&gt;=============================================================================&lt;br/&gt;&lt;br/&gt;Install      1 Package(s)&lt;br/&gt;&lt;br/&gt;Update       0 Package(s)&lt;br/&gt;&lt;br/&gt;Remove       0 Package(s)&lt;br/&gt;Total download size: 1.2 M&lt;br/&gt;&lt;br/&gt;Is this ok [y/N]: y&lt;br/&gt;&lt;br/&gt;Downloading Packages:&lt;br/&gt;&lt;br/&gt;(1/1): mod_security-2.5.9 100% |=========================| 1.2 MB    00:03&lt;br/&gt;&lt;br/&gt;warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 0d4306ef&lt;br/&gt;&lt;br/&gt;Importing GPG key 0x0D4306EF &quot;Jason Litka (http://www.jasonlitka.com) &quot; from http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka&lt;br/&gt;&lt;br/&gt;Is this ok [y/N]: y&lt;br/&gt;&lt;br/&gt;Running rpm_check_debug&lt;br/&gt;&lt;br/&gt;Running Transaction Test&lt;br/&gt;&lt;br/&gt;Finished Transaction Test&lt;br/&gt;&lt;br/&gt;Transaction Test Succeeded&lt;br/&gt;&lt;br/&gt;Running Transaction&lt;br/&gt;&lt;br/&gt;Installing: mod_security                 ######################### [1/1]&lt;br/&gt;Installed: mod_security.i386 0:2.5.9-1.jason.1&lt;br/&gt;&lt;br/&gt;Complete!&lt;/pre&gt;&lt;br/&gt;This problem occurs when rpm accesses the Berkeley database files, it makes temporary locker entries within the tables while it searches for data. If you control-c your rpm processes often, this issue will occur much sooner because the locks are never cleared.</content><link rel='replies' type='application/atom+xml' href='http://linuxmaza.blogspot.com/feeds/6185142400713342405/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxmaza.blogspot.com/2010/06/solved-lock-table-is-out-of-available.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3321470074006259731/posts/default/6185142400713342405'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3321470074006259731/posts/default/6185142400713342405'/><link rel='alternate' type='text/html' href='http://linuxmaza.blogspot.com/2010/06/solved-lock-table-is-out-of-available.html' title='Solved : Lock table is out of available locker entries - Yum install,&#xa;yum upgrade'/><author><name>Ashwin</name><uri>http://www.blogger.com/profile/09991847790833662522</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3321470074006259731.post-2228706278376622735</id><published>2010-06-05T09:42:00.000-07:00</published><updated>2010-07-18T23:36:50.053-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apache"/><title type='text'>How to Install Mod Security on Linux Centos 5.4, Fedora 11-12</title><content type='html'>&lt;strong&gt;ModSecurity&lt;/strong&gt; is a free open source Firewall for Web application which can help you to guard against Intrusion on your webservers like local file inclusion attacks, Cross Site Scripting, and SQL injection vulnerabilities and many more.&lt;br/&gt;&lt;br/&gt;The easiest way to install mod_security is using yum, to get the latest package of modsecurity refer to jason litka rpms.&lt;br/&gt;Lets Start&lt;br/&gt;&lt;br/&gt;Install the gpg Key&lt;br/&gt;&lt;br/&gt;You need to be Root to run this:&lt;br/&gt;&lt;br/&gt;&lt;pre&gt;[ashwin@ashwin ~]$ rpm –import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;Create a File&lt;br/&gt;&lt;pre&gt;&lt;br/&gt;[ashwin@ashwin ~]$ touch /etc/yum.repos.d/utterramblings.repo&lt;br/&gt;&lt;/pre&gt;&lt;br/&gt;Open the File using your favorite editor and add the contents&lt;br/&gt;&lt;pre&gt;&lt;br/&gt;[ashwin@ashwin ~]$ vim /etc/yum.repos.d/utterramblings.repo&lt;br/&gt;&lt;br/&gt;[utterramblings]&lt;br/&gt;name=Jason’s Utter Ramblings Repo&lt;br/&gt;baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/&lt;br/&gt;enabled=1&lt;br/&gt;gpgcheck=1&lt;br/&gt;gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka&lt;br/&gt;&lt;/pre&gt;&lt;br/&gt;Save the File and exit&lt;br/&gt;&lt;br/&gt;Now you can Install Mod-Security&lt;br/&gt;&lt;pre&gt;&lt;br/&gt;[root@ashwin ~]# yum install mod_security&lt;br/&gt;Setting up Install Process&lt;br/&gt;Parsing package install arguments&lt;br/&gt;Resolving Dependencies&lt;br/&gt;--&amp;gt; Running transaction check&lt;br/&gt;---&amp;gt; Package mod_security.i386 0:2.5.9-1.jason.1 set to be updated&lt;br/&gt;--&amp;gt; Finished Dependency Resolution&lt;br/&gt;&lt;br/&gt;Dependencies Resolved&lt;br/&gt;&lt;br/&gt;=============================================================================&lt;br/&gt;Package                 Arch       Version          Repository        Size&lt;br/&gt;=============================================================================&lt;br/&gt;Installing:&lt;br/&gt;mod_security            i386       2.5.9-1.jason.1  utterramblings    1.2 M&lt;br/&gt;&lt;br/&gt;Transaction Summary&lt;br/&gt;=============================================================================&lt;br/&gt;Install      1 Package(s)&lt;br/&gt;Update       0 Package(s)&lt;br/&gt;Remove       0 Package(s)&lt;br/&gt;&lt;br/&gt;Total download size: 1.2 M&lt;br/&gt;Is this ok [y/N]: y&lt;br/&gt;Downloading Packages:&lt;br/&gt;(1/1): mod_security-2.5.9 100% |=========================| 1.2 MB    00:03&lt;br/&gt;warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 0d4306ef&lt;br/&gt;Importing GPG key 0x0D4306EF &quot;Jason Litka (http://www.jasonlitka.com) &amp;lt;jasonlitka@verizon.net&amp;gt;&quot; from http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka&lt;br/&gt;Is this ok [y/N]: y&lt;br/&gt;Running rpm_check_debug&lt;br/&gt;Running Transaction Test&lt;br/&gt;Finished Transaction Test&lt;br/&gt;Transaction Test Succeeded&lt;br/&gt;Running Transaction&lt;br/&gt;Installing: mod_security                 ######################### [1/1]&lt;br/&gt;&lt;br/&gt;Installed: mod_security.i386 0:2.5.9-1.jason.1&lt;br/&gt;Complete!&lt;br/&gt;&lt;/pre&gt;&lt;br/&gt;Great You have installed mod security Restart HTTPD service and Roll. Check the Logs and you will find the magic.&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Issues :&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;1. Starting httpd: httpd: Syntax error on line 210 of /etc/httpd/conf/httpd.conf: Syntax error on line 3 of /etc/httpd/conf.d/mod_security.conf: Cannot load /etc/httpd/modules/mod_security2.so into server: /etc/httpd/modules/mod_security2.so: undefined symbol: ap_get_server_banner&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Solution :&lt;/strong&gt;&lt;br/&gt;&lt;pre&gt;&lt;br/&gt;[root@ashwin ~]#  yum remove httpd mod_perl mod_perl-devel mod_security&lt;br/&gt;[root@ashwin ~]#  mv /etc/yum.repos.d/CentOS-Base.repo /tmp ( move base centos repo to /tmp )&lt;br/&gt;[root@ashwin ~]#  yum install httpd ( This will install apache from utterramblings.repo )&lt;br/&gt;[root@ashwin ~]#  yum install mod_perl mod_perl-devel&lt;br/&gt;[root@ashwin ~]#  yum install mod_security&lt;br/&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxmaza.blogspot.com/feeds/2228706278376622735/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxmaza.blogspot.com/2010/06/how-to-install-mod-security-on-linux.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3321470074006259731/posts/default/2228706278376622735'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3321470074006259731/posts/default/2228706278376622735'/><link rel='alternate' type='text/html' href='http://linuxmaza.blogspot.com/2010/06/how-to-install-mod-security-on-linux.html' title='How to Install Mod Security on Linux Centos 5.4, Fedora 11-12'/><author><name>Ashwin</name><uri>http://www.blogger.com/profile/09991847790833662522</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3321470074006259731.post-1631609206884994290</id><published>2010-05-09T10:21:00.000-07:00</published><updated>2010-05-09T10:25:38.033-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="install mod security"/><category scheme="http://www.blogger.com/atom/ns#" term="modsecurity"/><title type='text'>Step by Step Installing mod_security from Source in Linux Centos5.4, Fedora12 Howto</title><content type='html'>&lt;p&gt;To Install mod Security from the source go to the Website of Mod security and download the packages&lt;br /&gt;[superuser@ashwin modse]# get http://www.modsecurity.org/download/modsecurity-apache_2.5.12.tar.gz&lt;/p&gt; &lt;p&gt;–2010-05-05 15:19:12–  http://www.modsecurity.org/download/modsecurity-apache_2.5.12.tar.gz&lt;/p&gt; &lt;p&gt;Saving to: `modsecurity-apache_2.5.12.tar.gz’&lt;/p&gt; &lt;p&gt;100%[=======================================&gt;] 1,392,209   1235.9Mb/s   in 5s     &lt;/p&gt; &lt;p&gt;2010-05-05 15:19:18 (1235.7 MB/s) – `modsecurity-apache_2.5.12.tar.gz’ saved [1392209/1392209]&lt;/p&gt; [superuser@ashwin modse]#  tar -zxf modsecurity-apache_2.5.&lt;br /&gt;&lt;br /&gt;To see the Full Tutorial:&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://www.linuxmaza.com/uncategorized/step-by-step-installing-mod_security-from-source-in-linux-centos5-4-fedora12-howto/&quot;&gt;Step by Step Installing mod_security from Source in Linux Centos5.4, Fedora12 Howto&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxmaza.blogspot.com/feeds/1631609206884994290/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxmaza.blogspot.com/2010/05/step-by-step-installing-modsecurity.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3321470074006259731/posts/default/1631609206884994290'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3321470074006259731/posts/default/1631609206884994290'/><link rel='alternate' type='text/html' href='http://linuxmaza.blogspot.com/2010/05/step-by-step-installing-modsecurity.html' title='Step by Step Installing mod_security from Source in Linux Centos5.4, Fedora12 Howto'/><author><name>Ashwin</name><uri>http://www.blogger.com/profile/09991847790833662522</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3321470074006259731.post-5101740236452794766</id><published>2010-05-06T05:24:00.000-07:00</published><updated>2010-07-18T23:36:49.708-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="System Administration"/><title type='text'>Howto Add New User, New Group and modify Users, Groups in Linux -&#xa;Centos5.4, Fedora 11 - Part 1</title><content type='html'>&lt;strong&gt;Adding users in Linux &lt;/strong&gt; helps you from giving all user Administrative (root access) rights if the system is used by Multiple people. Its one of the basic command but still very important which need to studied in much details, The More detail you know about adding user and adding group modifying existing users and groups may lead with excellent system administration skills and also help you with securing system. There are many attributes to read when we learn about useradd and groupadd command in linux. In this article we will go indepth of Adding, Modifying User and groups and also discussing about various parameters while using these commands.&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Adding New User in Linux&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;Adding a new user to your linuxbox is as simple as running a command with a argument which is the username to be created&lt;br/&gt;&lt;br/&gt;&lt;pre&gt;[root@ashwin ~]# useradd ashwin&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;Great You have created a new user but now into the technical details how does the user gets the home directory, how is the UID,GID set, how the default shell is assigned and other different features gets assigned when addding a user.&lt;br/&gt;&lt;br/&gt;When you add a user immediately some files are checked if the user is already present Files&lt;br/&gt;&lt;pre&gt;&lt;br/&gt;1. /etc/passwd&lt;br/&gt;2. /etc/groups&lt;br/&gt;3. /etc/shadows&lt;br/&gt;&lt;/pre&gt;&lt;br/&gt;If the user is not present in the above 3 files the next step is to look for another set of files which by default assign values to a newly added user the file which is looked is &lt;br/&gt;&lt;pre&gt; # cat /etc/login.defs &lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;The above file contains all the default parameter like, UID, GID to be set for new user, Home Directory (If not specified explicitly). Now once the user is added the home directory is created in /home/username by default and assigned a unique UID,GID. When you see the contents of /home/username you will find files&lt;br/&gt;&lt;pre&gt;&lt;br/&gt;[ashwin@ashwin ~]$ ll -a /home/ashwin/&lt;br/&gt;-rw-r--r--.   1 root root    18 2009-04-08 16:16 .bash_logout&lt;br/&gt;-rw-r--r--.   1 root root   176 2009-04-08 16:16 .bash_profile&lt;br/&gt;-rw-r--r--.   1 root root   124 2009-04-08 16:16 .bashrc&lt;br/&gt;-rw-r--r--.   1 root root   500 2009-04-10 17:22 .emacs&lt;br/&gt;drwxr-xr-x.   2 root root  4096 2009-03-18 06:22 .gnome2&lt;br/&gt;drwxr-xr-x.   4 root root  4096 2010-03-19 12:20 .mozilla&lt;br/&gt;-rw-r--r--.   1 root root   658 2009-03-02 22:50 .zshrc&lt;br/&gt;&lt;/pre&gt;&lt;br/&gt;Now from where these files came from, yes this files are copied to every newly added user from the /etc/skel folder.&lt;br/&gt;&lt;br/&gt;&lt;pre&gt;&lt;br/&gt;[ashwin@ashwin ~]$ ll -a /etc/skel/&lt;br/&gt;-rw-r--r--.   1 root root    18 2009-04-08 16:16 .bash_logout&lt;br/&gt;-rw-r--r--.   1 root root   176 2009-04-08 16:16 .bash_profile&lt;br/&gt;-rw-r--r--.   1 root root   124 2009-04-08 16:16 .bashrc&lt;br/&gt;-rw-r--r--.   1 root root   500 2009-04-10 17:22 .emacs&lt;br/&gt;drwxr-xr-x.   2 root root  4096 2009-03-18 06:22 .gnome2&lt;br/&gt;drwxr-xr-x.   4 root root  4096 2010-03-19 12:20 .mozilla&lt;br/&gt;-rw-r--r--.   1 root root   658 2009-03-02 22:50 .zshrc&lt;br/&gt;&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;Now a Bit more depth on useradd, we&#39;ll now discuss some parameters while adding a new user to change the default home directory, UID, GID, Default Shell Login, Password&lt;br/&gt;&lt;br/&gt;The Following arguments can be used to the command useradd&lt;br/&gt; &lt;pre&gt;&lt;br/&gt;  -b, --base-dir BASE_DIR       base directory for the new user account&lt;br/&gt;                                home directory&lt;br/&gt;  -c, --comment COMMENT         set the GECOS field for the new user account&lt;br/&gt;  -d, --home-dir HOME_DIR       home directory for the new user account&lt;br/&gt;  -D, --defaults                print or save modified default useradd&lt;br/&gt;                                configuration&lt;br/&gt;  -e, --expiredate EXPIRE_DATE  set account expiration date to EXPIRE_DATE&lt;br/&gt;  -f, --inactive INACTIVE       set password inactive after expiration to INACTIVE&lt;br/&gt;  -g, --gid GROUP               force use GROUP for the new user account&lt;br/&gt;  -G, --groups GROUPS           list of supplementary groups for the new  user account&lt;br/&gt;  -h, --help                    display this help message and exit&lt;br/&gt;  -k, --skel SKEL_DIR           specify an alternative skel directory&lt;br/&gt;  -K, --key KEY=VALUE           overrides /etc/login.defs defaults&lt;br/&gt;  -l,                           do not add the user to the lastlog and  faillog databases&lt;br/&gt;  -m, --create-home             create home directory for the new user account&lt;br/&gt;  -M, 	                  do not create user&#39;s home directory(overrides /etc/login.defs)&lt;br/&gt;  -N, --no-user-group           do not create a group with the same name as  the user&lt;br/&gt;  -o, --non-unique              allow create user with duplicate (non-unique) UID&lt;br/&gt;  -p, --password PASSWORD       use encrypted password for the new user account&lt;br/&gt;  -r, --system                  create a system account&lt;br/&gt;  -s , --shell SHELL             the login shell for the new user account&lt;br/&gt;  -u, --uid UID                 force use the UID for the new user account&lt;br/&gt;  -U, --user-group              create a group with the same name as the user&lt;br/&gt;  -Z, --selinux-user SEUSER     use a specific SEUSER for the SELinux user mapping&lt;br/&gt; &lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;&lt;ul&gt;&lt;br/&gt;&lt;strong&gt;Examples&lt;/strong&gt;&lt;/ul&gt;&lt;br/&gt;&lt;br/&gt;1. Add user with home directory in /opt/username&lt;br/&gt; &lt;pre&gt;&lt;br/&gt;[root@ashwin ~]# useradd -d /opt/ username&lt;br/&gt; &lt;/pre&gt;&lt;br/&gt;2. Add user with defined home directory UID, GID&lt;br/&gt; &lt;pre&gt;&lt;br/&gt;[root@ashwin ~]# useradd -d /opt/ -u 800 -g 800 username&lt;br/&gt; &lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;3. Defining password while adding a new user&lt;br/&gt; &lt;pre&gt;&lt;br/&gt;[root@ashwin ~]# useradd -d /opt/ -u 800 -g 800 -p password username &lt;br/&gt; &lt;/pre&gt;&lt;br/&gt;4. Defining the login shell for the new user account&lt;br/&gt; &lt;pre&gt;&lt;br/&gt;[root@ashwin ~]# useradd -d /opt/ -u 800 -g 800 -p password -s /bin/sh username &lt;br/&gt;&lt;br/&gt;[root@ashwin ~]# useradd -d /opt/ -u 800 -g 800 -p password -s /bin/nologin username &lt;br/&gt; &lt;/pre&gt;&lt;br/&gt;Explore around with the parameters you would find many features in it.&lt;br/&gt;&lt;br/&gt;Also Look For Parts Two to know more depth knowledge of User and Group adding in Linux</content><link rel='replies' type='application/atom+xml' href='http://linuxmaza.blogspot.com/feeds/5101740236452794766/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxmaza.blogspot.com/2010/05/howto-add-new-user-new-group-and-modify.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3321470074006259731/posts/default/5101740236452794766'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3321470074006259731/posts/default/5101740236452794766'/><link rel='alternate' type='text/html' href='http://linuxmaza.blogspot.com/2010/05/howto-add-new-user-new-group-and-modify.html' title='Howto Add New User, New Group and modify Users, Groups in Linux -&#xa;Centos5.4, Fedora 11 - Part 1'/><author><name>Ashwin</name><uri>http://www.blogger.com/profile/09991847790833662522</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3321470074006259731.post-1292127628797260223</id><published>2010-05-05T10:08:00.000-07:00</published><updated>2010-07-18T23:36:49.700-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apache"/><title type='text'>Step by Step Installing mod_security from Source in Linux Centos5.4,&#xa;Fedora12 Howto</title><content type='html'>To Install mod Security from the source go to the Website of Mod security and download the packages&lt;br/&gt;&lt;pre&gt;[superuser@ashwin modse]# get http://www.modsecurity.org/download/modsecurity-apache_2.5.12.tar.gz&lt;br/&gt;&lt;br/&gt;--2010-05-05 15:19:12--  http://www.modsecurity.org/download/modsecurity-apache_2.5.12.tar.gz&lt;br/&gt;&lt;br/&gt;Saving to: `modsecurity-apache_2.5.12.tar.gz&#39;&lt;br/&gt;&lt;br/&gt;100%[=======================================&amp;gt;] 1,392,209   1235.9Mb/s   in 5s     &lt;br/&gt;&lt;br/&gt;2010-05-05 15:19:18 (1235.7 MB/s) - `modsecurity-apache_2.5.12.tar.gz&#39; saved [1392209/1392209]&lt;br/&gt;&lt;br/&gt;[superuser@ashwin modse]#  tar -zxf modsecurity-apache_2.5.12.tar.gz&lt;br/&gt;[superuser@ashwin modse]# cd modsecurity-apache_2.5.12&lt;/pre&gt;&lt;br/&gt;Stop Apache httpd&lt;br/&gt;&lt;pre&gt;[superuser@ashwin modse]# service httpd stop&lt;br/&gt;[superuser@ashwin apache2]# /configure --with-apxs=/path/to/httpd-2.x.y/bin/apxs&lt;/pre&gt;&lt;br/&gt;Compile with:&lt;br/&gt;&lt;pre&gt;[superuser@ashwin apache2]# make&lt;/pre&gt;&lt;br/&gt;Optionally test with:&lt;br/&gt;&lt;pre&gt;[superuser@ashwin apache2]# make test&lt;/pre&gt;&lt;br/&gt;Optionally build the ModSecurity Log Collector with:&lt;br/&gt;&lt;pre&gt;[superuser@ashwin apache2]# make mlogc&lt;/pre&gt;&lt;br/&gt;Install the ModSecurity module with:&lt;br/&gt;&lt;pre&gt;[superuser@ashwin apache2]# make install&lt;br/&gt;&lt;br/&gt;If you get the below error you need to recompile apache with DSO and APXS&lt;br/&gt;&lt;br/&gt;configure: looking for Apache module support via DSO through APXS&lt;br/&gt;configure: error: couldn&#39;t find APXS&lt;/pre&gt;&lt;br/&gt;&lt;strong&gt;Solution&lt;/strong&gt;&lt;br/&gt;&lt;pre&gt;[superuser@ashwin modse]# get http://apache.siamwebhosting.com/httpd/httpd-2.2.15.tar.gz&lt;br/&gt;[superuser@ashwin modse]# cd httpd-2.2.15&lt;br/&gt;[superuser@ashwin httpd-2.2.15]# ./configure --enable-so  --with-pcre&lt;br/&gt;[superuser@ashwin httpd-2.2.15]# make&lt;br/&gt;[superuser@ashwin httpd-2.2.15]# make install&lt;/pre&gt;&lt;br/&gt;Now Change you directory to /your/path/mod-security/apache2/&lt;br/&gt;Install MOD-Security&lt;br/&gt;&lt;pre&gt;[superuser@ashwin apache2]# make install&lt;/pre&gt;&lt;br/&gt;Congratulation you have successfully installed mod-security now to make it work add the following lines in your apache configuration file&lt;br/&gt;&lt;pre&gt;[superuser@ashwin apache2]# vi /etc/httpd/conf/httpd.conf&lt;br/&gt;LoadFile /usr/lib/libxml2.so&lt;br/&gt;LoadFile /usr/lib/liblua5.1.so&lt;br/&gt;&lt;br/&gt;# Load the ModSecurity module with:&lt;br/&gt;LoadModule security2_module modules/mod_security2.so&lt;/pre&gt;&lt;br/&gt;Now Restart Apache Service and you ready to Go&lt;br/&gt;&lt;pre&gt;superuser@ashwin apache2]# service httpd start&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxmaza.blogspot.com/feeds/1292127628797260223/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxmaza.blogspot.com/2010/05/step-by-step-installing-modsecurity_05.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3321470074006259731/posts/default/1292127628797260223'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3321470074006259731/posts/default/1292127628797260223'/><link rel='alternate' type='text/html' href='http://linuxmaza.blogspot.com/2010/05/step-by-step-installing-modsecurity_05.html' title='Step by Step Installing mod_security from Source in Linux Centos5.4,&#xa;Fedora12 Howto'/><author><name>Ashwin</name><uri>http://www.blogger.com/profile/09991847790833662522</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3321470074006259731.post-4187467019839840427</id><published>2010-04-15T14:47:00.000-07:00</published><updated>2010-07-18T23:36:33.126-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="General"/><title type='text'>Email Marketing In India - How Do I Choose One from Many</title><content type='html'>&lt;h1&gt;&lt;strong&gt;Email Marketing In India&lt;/strong&gt;&lt;/h1&gt;&lt;br/&gt;&lt;strong&gt; &lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;As the name say Email used for marketing communications. it is nothing but broadcasting of emails to the general public who can be potential customer or are already your customers.In this article we&#39;ll discuss Emailing Marketing in India.&lt;br/&gt;&lt;br/&gt;India being the quickest revenue generating country for a new product launch and also being the HIGHEST ROI (Return on Investment) country entrepreneurs have kept an eagles eye launching their product/services publicly. As computer reach in India increased a lot in the last 5 years there it has became easier for marketers to plan out strategies while being cost effective and fruitful. As Email marketing has made people Night Millionaires it has been a big time headache for consumers and end users receiving hundreds or even thousands of SPAM mail landing into their Mailbox. These have made life of MSP&#39;s (Mail Service Providers), ISP&#39;s (Internet Service providers) to be on the toes every second and tighten the security of the services provided. Also their are many legitimate mails which land up in Users SPAMBOX which is due to some users in the network sending unsolicited commercial email and the IP getting listed in the SPAM Sources.&lt;br/&gt;&lt;br/&gt;To select and judge the best in business Email marketing companies you should always check the following points:&lt;br/&gt;&lt;br/&gt;1. Server Locations&lt;br/&gt;2. Deliverable of mail&lt;br/&gt;3. Handling Queues&lt;br/&gt;4. Reports&lt;br/&gt;5. Support (Prefer Local Support)&lt;br/&gt;6. Track Record of Company (Google it out for Review You will get the Best)&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Advantages&lt;/strong&gt;&lt;br/&gt;E-mail marketing (on the Internet) is popular with companies for several reasons:&lt;br/&gt;&lt;ul&gt;&lt;br/&gt;	&lt;li&gt; An exact return on investment can be tracked (&quot;track to basket&quot;) and has proven to be high when done properly. E-mail marketing is often reported as second only to search marketing as the most effective online marketing tactic.&lt;/li&gt;&lt;br/&gt;	&lt;li&gt; Advertisers can reach substantial numbers of e-mail subscribers who have opted in (i.e., consented) to receive e-mail communications on subjects of interest to them.&lt;/li&gt;&lt;br/&gt;	&lt;li&gt; Over half of Internet users check or send e-mail on a typical day.&lt;/li&gt;&lt;br/&gt;&lt;/ul&gt;&lt;br/&gt;&lt;strong&gt;Disadvantages&lt;/strong&gt;&lt;br/&gt;&lt;ul&gt;&lt;br/&gt;	&lt;li&gt;A report issued by the e-mail services company Return Path, as of mid-2008 e-mail deliverability is still an issue for legitimate marketers. According to the report, legitimate e-mail servers averaged a delivery rate of 56%; twenty percent of the messages were rejected, and eight percent were filtered.&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;Companies considering the use of an e-mail marketing program must make sure that their program does not violate spam laws such as the United States&#39; Controlling the Assault of Non-Solicited Pornography and Marketing Act (CAN-SPAM),the European Privacy and Electronic Communications Regulations 2003, or their Internet service provider&#39;s acceptable use policy.&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;As of there are less Strict Spam Laws in India&lt;/li&gt;&lt;br/&gt;&lt;/ul&gt;&lt;br/&gt;Companies That has being into the business for long and gained lot of trust in the Email Marketing Industries in India&lt;br/&gt;&lt;strong&gt;&lt;a href=&quot;http://www.qlc.in&quot;&gt;1. Quantumlink Communications Pvt. Ltd.&lt;/a&gt;&lt;/strong&gt;&lt;br/&gt;They have a state of art Service Name MAILDIRECT managed by Highly skilled team of System Administrators backed up with Professional Support and highly motivated Sales team which cares for your ROI.&lt;br/&gt;&lt;br/&gt;MailDirect is hosted on high-end servers, which ensures high-speed Internet connectivity, resulting in extremely low delivery times and zero choke of your bandwidth. Companies can only upload your message and the list, all the rest is done through a very intuitive browser-based interface on the server and your Email / SMS communication campaign is ready to roll.&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://download.qlc.co.in/brochures/QLC-Brochure-MailServe-MailDirect.pdf&quot;&gt;You can Download Brochure Here &lt;/a&gt;&lt;br/&gt;&lt;br/&gt;Visit the Company Website at www.qlc.in&lt;br/&gt;&lt;br/&gt;2. EMAIL Marketing in India&lt;br/&gt;Best in its class for Bulk Mailing&lt;br/&gt;Visit http://www.emailmarketingindia.com</content><link rel='replies' type='application/atom+xml' href='http://linuxmaza.blogspot.com/feeds/4187467019839840427/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxmaza.blogspot.com/2010/04/email-marketing-in-india-how-do-i.html#comment-form' title='25 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3321470074006259731/posts/default/4187467019839840427'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3321470074006259731/posts/default/4187467019839840427'/><link rel='alternate' type='text/html' href='http://linuxmaza.blogspot.com/2010/04/email-marketing-in-india-how-do-i.html' title='Email Marketing In India - How Do I Choose One from Many'/><author><name>Ashwin</name><uri>http://www.blogger.com/profile/09991847790833662522</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>25</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3321470074006259731.post-7311100961101031876</id><published>2010-04-09T17:57:00.000-07:00</published><updated>2010-07-18T23:36:23.569-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="System Administration"/><title type='text'>Howto Install RED5 Flash Media Server in Fedora 11, Centos 5.4, Redhat</title><content type='html'>&lt;strong&gt;Red5 is an Open Source Flash Media &lt;/strong&gt;Server written in Java that supports:&lt;br/&gt;&lt;br/&gt;    * Streaming Audio/Video (FLV and MP3)&lt;br/&gt;    * Recording Client Streams (FLV only)&lt;br/&gt;    * Shared Objects&lt;br/&gt;    * Live Stream Publishing&lt;br/&gt;    * Remoting (AMF) &lt;br/&gt;&lt;br/&gt;This is a reverse engineered open source project which aims to produce a feature-complete implementation written in Java. It os one of the Full implementation RTMP servers other than:&lt;br/&gt; &lt;br/&gt;Adobe Flash Media Server,&lt;br/&gt;Onlinelib VCS Video Communication Server&lt;br/&gt;Wowza Media Server&lt;br/&gt;WebORB Integration Server&lt;br/&gt;haXeVideo&lt;br/&gt;&lt;br/&gt;In this tutorial we&#39;ll learn howto installRED5 on Centos 5.4,Fedora, Redhat and other Linux Distribution, There are many ways to achieve this but this is how i installed RED5 Media Server on Fedora 11.&lt;br/&gt;&lt;br/&gt;Red5 Requires Java Development Kit (JDK) to run so you have to install Java onto the system,You can acheive this in 2 ways&lt;br/&gt;1. Either Use Yellow DOG Updater &lt;br/&gt;&lt;pre&gt;# yum -y install java-1.6.0-openjdk java-1.6.0-openjdk-devel&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;OR&lt;br/&gt;&lt;br/&gt;Download JDK and Compile&lt;br/&gt;&lt;pre&gt;cd /usr/java &lt;br/&gt;IF /usr/java cannot be found&lt;br/&gt;mkdir /usr/java&lt;br/&gt;Go to the Link and Download http://java.sun.com/javase/downloads/widget/jdk6.jsp and Download jdk-6u19-linux-i586.bin&lt;br/&gt;&lt;br/&gt;mv /home/ashwin/Download/jdk-6u19-linux-i586.bin /usr/java/&lt;br/&gt;&lt;br/&gt;chmod +x jdk-6u19-linux-i586.bin&lt;br/&gt;./jdk-6u19-linux-i586.bin&lt;br/&gt;&lt;br/&gt;You will see &lt;br/&gt;JAVA_HOME=&quot;/usr/java/jdk1.6&quot;&lt;br/&gt;export JAVA_HOME&lt;br/&gt;echo $JAVA_HOME&lt;br/&gt;&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;Great Now you have installed  JAVA now proceed&lt;br/&gt;&lt;br/&gt;Another Important requirement is ANT (It is a Apache Project) which we require to compile the RED5 Code, Good News is you dont need to compile ANT as it is already in binary format Just extract and install it in /usr/java&lt;br/&gt;&lt;br/&gt;&lt;pre&gt;&lt;br/&gt;#cd /home/ashwin/&lt;br/&gt;#w.get http://mirrors.kahuki.com/apache/ant/binaries/apache-ant-1.8.0-bin.tar.bz2&lt;br/&gt;#tar -jxf apache-ant-1.8.0-bin.tar.bz2&lt;br/&gt;#mv apache-ant-1.8.0 /usr/local/ant&lt;br/&gt;&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;Now we need to Export the JAVA and ANT Environment Variables which would help us in installing and proper running if RED5 Server&lt;br/&gt;&lt;br/&gt;&lt;pre&gt;&lt;br/&gt;export ANT_HOME=/usr/local/ant&lt;br/&gt;export JAVA_HOME=/usr/lib/jvm/java&lt;br/&gt;export PATH=$PATH:/usr/local/ant/bin&lt;br/&gt;export CLASSPATH=.:$JAVA_HOME/lib/classes.zip&lt;br/&gt;&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;&lt;pre&gt;vi /etc/bashrc&lt;br/&gt;&lt;br/&gt;# ALSO Put the Above Here&lt;br/&gt;export ANT_HOME=/usr/local/ant&lt;br/&gt;export JAVA_HOME=/usr/lib/jvm/java&lt;br/&gt;export PATH=$PATH:/usr/local/ant/bin&lt;br/&gt;export CLASSPATH=.:$JAVA_HOME/lib/classes.zip&lt;br/&gt;&lt;br/&gt;&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;Now download the latest RED5 CODE from the site to build &lt;br/&gt;&lt;br/&gt;&lt;pre&gt;&lt;br/&gt;cd /home/ashwin/&lt;br/&gt;svn checkout http://red5.googlecode.com/svn/java/server/trunk/ red5&lt;br/&gt;mv red5 /usr/local/&lt;br/&gt;cd /usr/local/red5&lt;br/&gt;ant prepare&lt;br/&gt;ant dist&lt;br/&gt;&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;You would you screen scrolling and you are not able to understand anything &quot;CHILL&quot; All is well and RED5 Media Server is getting compiled, AT the END you would SEE&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;BUILD SUCCESSFUL&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;If you see this  you have made it you have done 95% of the work. Now copy the conf directory from dist/ and test the red5 installation.&lt;br/&gt;&lt;pre&gt;&lt;br/&gt;cp -r dist/conf .&lt;br/&gt;./red5.sh&lt;br/&gt;&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;STARTING, STOPPING,RESTARTING RED5 Media Server&lt;br/&gt;I have created a &lt;a href=&quot;http://www.linuxmaza.com/system-administration/init-script-to-start-stop-restart-red5-flash-media-server/&quot;&gt;Init Script Click Here&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;INIT Script to Start,STOP, RESTART RED5 Media Server&lt;br/&gt;&lt;br/&gt;Start RED5&lt;br/&gt;&lt;pre&gt;&lt;br/&gt;/etc/init.d/red5 start&lt;br/&gt;&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;TESTING RED5&lt;br/&gt;&lt;br/&gt;Go TO your Browser Address Bar and Type&lt;br/&gt;&lt;pre&gt;&lt;br/&gt;http://your.ip.address:5080&lt;br/&gt;&lt;br/&gt;Check Out the Demos&lt;br/&gt;http://your.ip.address:5080/demos/&lt;br/&gt;&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;ISSUE&lt;br/&gt;&lt;br/&gt;When you run ./red5.sh, it will show you Installer service created. Thats mean everything runs fine and red5 server is up. But if you went to port_tester.swf using demos above or your application shows connections FAILS, this is an issue of RTMPT and RTMPTS. You can see it by running&lt;br/&gt;&lt;br/&gt;&lt;pre&gt;&lt;br/&gt;/usr/local/red5/red5.sh&lt;br/&gt;&lt;br/&gt;output trancated&lt;br/&gt;&lt;br/&gt;[INFO] [main] org.red5.server.tomcat.TomcatLoader – RTMPT server bean was not found&lt;br/&gt;[INFO] [main] org.red5.server.tomcat.TomcatLoader – RTMPS server bean was not found&lt;br/&gt;&lt;br/&gt;output truncated&lt;br/&gt;&lt;br/&gt;If you see this you have to uncomment the RTMPT and RTMPTS TomcatLoader in/usr/local/red5/conf/red5-core.xml&lt;br/&gt;&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;&lt;/pre&gt;&lt;br/&gt;vi /usr/local/red5/conf/red5-core.xml&lt;br/&gt;&lt;br/&gt;Search for a lines&lt;br/&gt;&lt;!– RTMPT –&gt;&lt;br/&gt;&lt;!–&lt;br/&gt;&lt;bean id=”rtmpt.server” class=”org.red5.server.net.rtmpt.TomcatRTMPTLoader” init-method=”init” lazy-init=”true”&gt;&lt;br/&gt;&lt;br/&gt;Remove the &lt;!– from start of &lt;bean and –&gt; from end of &lt;/bean&gt;&lt;br/&gt;&lt;br/&gt;Same goes for RTMPS&lt;br/&gt;&lt;!– RTMPS –&gt;&lt;br/&gt;&lt;!–&lt;br/&gt;&lt;bean id=”rtmps.server” class=”org.red5.server.net.rtmps.TomcatRTMPSLoader” init-method=”init” lazy-init=”true”&gt;&lt;br/&gt;&lt;br/&gt;Remove the &lt;!– from start of &lt;bean and –&gt; from end of &lt;/bean&gt;&lt;br/&gt;&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Restart the red5 services and connection fails problem will be fixed.</content><link rel='replies' type='application/atom+xml' href='http://linuxmaza.blogspot.com/feeds/7311100961101031876/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxmaza.blogspot.com/2010/04/howto-install-red5-flash-media-server.html#comment-form' title='15 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3321470074006259731/posts/default/7311100961101031876'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3321470074006259731/posts/default/7311100961101031876'/><link rel='alternate' type='text/html' href='http://linuxmaza.blogspot.com/2010/04/howto-install-red5-flash-media-server.html' title='Howto Install RED5 Flash Media Server in Fedora 11, Centos 5.4, Redhat'/><author><name>Ashwin</name><uri>http://www.blogger.com/profile/09991847790833662522</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>15</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3321470074006259731.post-3983050090061365781</id><published>2010-04-09T17:48:00.000-07:00</published><updated>2010-07-18T23:36:23.562-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="System Administration"/><title type='text'>Init Script to Start, Stop, Restart RED5 Media Server</title><content type='html'>Click Here &lt;strong&gt;&lt;a href=&quot;http://www.linuxmaza.com/system-administration/howto-install-red5-flash-media-server-in-fedora-11-centos-5-4-redhat/&quot;&gt;Howto Install RED5 Flash Media Server in Fedora 11, Centos 5.4, Redhat&lt;/a&gt;&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;RED5 is Open Source Media Flash Server&lt;/strong&gt;, Highly Scalable and Customizable&lt;br/&gt;&lt;br/&gt;Just Copy the Code in&lt;br/&gt;&lt;pre&gt;&lt;br/&gt;vi /etc/init.d/red5&lt;br/&gt;&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;COPY the Below Code&lt;br/&gt;&lt;pre&gt;&lt;br/&gt;    #!/bin/sh&lt;br/&gt;    # Author : Ashwin &lt;br/&gt;    # Description: Red5 Media Flash streaming server&lt;br/&gt;&lt;br/&gt;    PROG=red5&lt;br/&gt;    RED5_HOME=/usr/local/red5&lt;br/&gt;    DAEMON=$RED5_HOME/$PROG.sh&lt;br/&gt;    PIDFILE=/var/run/$PROG.pid&lt;br/&gt;&lt;br/&gt;    # Source function library&lt;br/&gt;    . /etc/rc.d/init.d/functions&lt;br/&gt;&lt;br/&gt;    [ -r /etc/sysconfig/red5 ] &amp;&amp; . /etc/sysconfig/red5&lt;br/&gt;&lt;br/&gt;    RETVAL=0&lt;br/&gt;&lt;br/&gt;    case “$1″ in&lt;br/&gt;    start)&lt;br/&gt;    echo -n $”Starting $PROG: ”&lt;br/&gt;    cd $RED5_HOME&lt;br/&gt;    $DAEMON &gt;/dev/null 2&gt;/dev/null &amp;&lt;br/&gt;    RETVAL=$?&lt;br/&gt;    if [ $RETVAL -eq 0 ]; then&lt;br/&gt;    echo $! &gt; $PIDFILE&lt;br/&gt;    touch /var/lock/subsys/$PROG&lt;br/&gt;&lt;br/&gt;    fi&lt;br/&gt;    [ $RETVAL -eq 0 ] &amp;&amp; success $”$PROG startup” || failure $”$PROG startup”&lt;br/&gt;    echo&lt;br/&gt;    ;;&lt;br/&gt;    stop)&lt;br/&gt;    echo -n $”Shutting down $PROG: ”&lt;br/&gt;    killproc -p $PIDFILE&lt;br/&gt;    RETVAL=$?&lt;br/&gt;    echo&lt;br/&gt;    [ $RETVAL -eq 0 ] &amp;&amp; rm -f /var/lock/subsys/$PROG&lt;br/&gt;    ;;&lt;br/&gt;    restart)&lt;br/&gt;    $0 stop&lt;br/&gt;    $0 start&lt;br/&gt;    ;;&lt;br/&gt;    status)&lt;br/&gt;    status $PROG -p $PIDFILE&lt;br/&gt;    RETVAL=$?&lt;br/&gt;    ;;&lt;br/&gt;    *)&lt;br/&gt;    echo $”Usage: $0 {start|stop|restart|status}”&lt;br/&gt;    RETVAL=1&lt;br/&gt;    esac&lt;br/&gt;&lt;br/&gt;    exit $RETVAL&lt;br/&gt;&lt;br/&gt;&lt;/pre&gt;&lt;br/&gt;&lt;pre&gt;&lt;br/&gt;chmod 755 /etc/init.d/red5&lt;br/&gt;&lt;/pre&gt;&lt;br/&gt;Test It &lt;br/&gt;&lt;pre&gt;&lt;br/&gt;/etc/init.d/red5 start&lt;br/&gt;/etc/init.d/red5 stop&lt;br/&gt;/etc/init.d/red5 restart&lt;br/&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxmaza.blogspot.com/feeds/3983050090061365781/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxmaza.blogspot.com/2010/04/init-script-to-start-stop-restart-red5.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3321470074006259731/posts/default/3983050090061365781'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3321470074006259731/posts/default/3983050090061365781'/><link rel='alternate' type='text/html' href='http://linuxmaza.blogspot.com/2010/04/init-script-to-start-stop-restart-red5.html' title='Init Script to Start, Stop, Restart RED5 Media Server'/><author><name>Ashwin</name><uri>http://www.blogger.com/profile/09991847790833662522</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3321470074006259731.post-3490029024913100139</id><published>2010-04-06T05:23:00.000-07:00</published><updated>2010-07-18T23:36:20.091-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="System Administration"/><title type='text'>Howto setup local yum repository on RedHat Fedora12 Centos5.4</title><content type='html'>This article is about Setting up a Local yum repository to be used for local network. Local Yum Repository can save internet bandwidth downloading all your packages from the local repository over FAST LAN Network.&lt;br/&gt;&lt;br/&gt;If You want to use it in your network the best option to be used is using Httpd - Apache so the yum repository will be acessible via web.&lt;br/&gt;&lt;br/&gt;Step 1&lt;br/&gt;Check if Httpd is installed and running&lt;br/&gt;&lt;br/&gt;&lt;pre&gt;[root@localhost ~]# ps ax | grep http&lt;br/&gt;&lt;br/&gt; 3617 ?        Ss     0:00 /usr/sbin/httpd&lt;br/&gt; 3621 ?        S      0:00 /usr/sbin/httpd&lt;br/&gt; 3622 ?        S      0:00 /usr/sbin/httpd&lt;br/&gt; 3623 ?        S      0:00 /usr/sbin/httpd&lt;br/&gt; 3624 ?        S      0:00 /usr/sbin/httpd&lt;br/&gt; 3625 ?        S      0:00 /usr/sbin/httpd&lt;br/&gt; 3626 ?        S      0:00 /usr/sbin/httpd&lt;br/&gt; 3627 ?        S      0:00 /usr/sbin/httpd&lt;br/&gt; 3628 ?        S      0:00 /usr/sbin/httpd&lt;br/&gt; 3629 ?        S      0:00 /usr/sbin/httpd&lt;br/&gt;&lt;/pre&gt;&lt;br/&gt;If it is not running then Start HTTPD&lt;br/&gt;&lt;br/&gt;&lt;pre&gt;[root@localhost ~]# /etc/init.d/httpd start&lt;br/&gt;&lt;br/&gt;OR &lt;br/&gt;&lt;br/&gt;[root@localhost ~]# service httpd start&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;and if you haven&#39;t installed httpd yet then you can do it by &lt;br/&gt;&lt;br/&gt;&lt;pre&gt;[root@localhost ~]# yum install httpd&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;Now make httpd start at every system boot automatically by putting it in system Startup.&lt;br/&gt;&lt;br/&gt;&lt;pre&gt;[root@localhost ~]# chkconfig --levels 235 httpd on&lt;br/&gt;&lt;br/&gt;Start apache&lt;br/&gt;[root@localhost ~]# /etc/init.d/httpd start&lt;br/&gt;                  OR &lt;br/&gt;[root@localhost ~]# service httpd start&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;How to Build the Repository&lt;br/&gt;We will use Apache&#39;s default Document root to store the packages, Default DocumentRoot for apache is &quot;/var/www/html&quot;.&lt;br/&gt;&lt;br/&gt;Create a dir in the Document Root named yum. We will create two more directories &lt;br/&gt;base-pkg : This would contain all the packages of the Linux Distribution you are making repository for.&lt;br/&gt;updates : This would contain all the update packages for your Linux Distribution&lt;br/&gt;&lt;br/&gt;&lt;pre&gt;[root@localhost ~]# mkdir /var/www/html/yum&lt;br/&gt;[root@localhost ~]# mkdir /var/www/html/yum/base-pkg&lt;br/&gt;[root@localhost ~]# mkdir /var/www/html/yum/updates&lt;br/&gt;&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;BUILDING YOU REPOSITORY&lt;br/&gt;&lt;br/&gt;To build you yum repository the easy way is copy all the contents from the Linux Distribution DVD/CD Media to the repository location in this case /var/www/html/yum, Make sure that you copy all the contents (Packages) into the base-pkg directory. If you have a Media follow the Steps Below&lt;br/&gt;&lt;br/&gt;&lt;pre&gt;&lt;br/&gt;[root@localhost ~]# mount /dev/cdrom /mnt&lt;br/&gt;[root@localhost ~]# cp -v /mnt/Packages/* /var/www/html/yum/base-pkg/&lt;br/&gt;[root@localhost ~]# umount /mnt&lt;br/&gt;&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;Now we need a tool &quot;createrepo&quot; which would create a repository for the linux distibution. By default it is comes installed with all Distribution of linux, but if its not installed use yum to install it.&lt;br/&gt;Check if createrepo is installed&lt;br/&gt;&lt;pre&gt;[root@localhost ~]# which createrepo&lt;br/&gt;/usr/bin/createrepo&lt;br/&gt;&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;If you get the above result skip the next step and start Building the repository if its not installed then install it&lt;br/&gt;&lt;pre&gt;[root@localhost ~]# yum install createrepo&lt;br/&gt;&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;Now Run the createrepo tool&lt;br/&gt;&lt;br/&gt;&lt;pre&gt;[root@localhost ~]# createrepo /var/www/html/yum/base-pkg/&lt;br/&gt;&lt;br/&gt;[root@localhost ~]# ls -l /var/www/html/yum/base-pkg/repodata/&lt;br/&gt;-rw-r--r-- 1 root root 2227275 2010-02-18 11:51 filelists.xml.gz&lt;br/&gt;-rw-r--r-- 1 root root 6487453 2010-02-18 11:51 other.xml.gz&lt;br/&gt;-rw-r--r-- 1 root root  747714 2010-02-18 11:51 primary.xml.gz&lt;br/&gt;-rw-r--r-- 1 root root     951 2010-02-18 11:51 repomd.xml&lt;br/&gt;&lt;/pre&gt;&lt;br/&gt;The Second step building repository is updating your updates directory for all new packages. Go to the Main website of the Linux Distribution you are preparing repostory for and check the updates link or use the below links&lt;br/&gt;&lt;br/&gt;CENTOS : rsync://centos.arcticnetwork.ca/centos/5.4/updates/i386/RPMS/&lt;br/&gt;FEDORA : rsync rsync://mirror.aarnet.edu.au/fedora/linux/updates/12/i386/&lt;br/&gt;&lt;br/&gt;As per you distribution rsync the data to the updates directory&lt;br/&gt;&lt;pre&gt;FOR CENTOS RUN&lt;br/&gt;[root@localhost ~]# rsync -avrt rsync://centos.arcticnetwork.ca/centos/5.4/updates/i386/RPMS/ --exclude=debug/ /var/www/html/yum/updates/&lt;br/&gt;FOR CENTOS RUN&lt;br/&gt;[root@localhost ~]# rsync -avrt rsync://mirror.aarnet.edu.au/fedora/linux/updates/12/i386/ --exclude=debug/ /var/www/html/yum/updates/&lt;br/&gt;&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;To get the updates regularly you can put the above command inthe crontab so that you updates directories are updated periodically&lt;br/&gt; &lt;br/&gt;&lt;pre&gt;[root@localhost ~]# crontab -e &lt;br/&gt;* * 2 * * rsync -avrt rsync://centos.arcticnetwork.ca/centos/5.4/updates/i386/RPMS/ --exclude=debug/ /var/www/html/yum/updates/&lt;br/&gt;&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;You have created local yum repository, now to make clients on your network to use the local repository, create a file mylocal.repo in /etc/yum.repos.d&lt;br/&gt;&lt;br/&gt;&lt;pre&gt;[root@localhost ~]# vim /etc/yum.repos.d/mylocal.repo&lt;br/&gt;Add the Following Lines&lt;br/&gt;&lt;br/&gt;[base-local]&lt;br/&gt;name=Centos $releasever - $basearch&lt;br/&gt;failovermethod=priority&lt;br/&gt;baseurl=http://192.168.1.1/yum/base-pkg/&lt;br/&gt;enabled=1&lt;br/&gt;gpgcheck=0&lt;br/&gt;&lt;br/&gt;[updates-local]&lt;br/&gt;name=Centos $releasever - $basearch - Updates&lt;br/&gt;failovermethod=priority&lt;br/&gt;baseurl=http://192.168.1.1/yum/updates/&lt;br/&gt;enabled=1&lt;br/&gt;gpgcheck=0&lt;br/&gt;&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;THAT&#39;s IT, Now you can update all your packages over high Speed Lan connectivity instead of Internet.</content><link rel='replies' type='application/atom+xml' href='http://linuxmaza.blogspot.com/feeds/3490029024913100139/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxmaza.blogspot.com/2010/04/howto-setup-local-yum-repository-on.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3321470074006259731/posts/default/3490029024913100139'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3321470074006259731/posts/default/3490029024913100139'/><link rel='alternate' type='text/html' href='http://linuxmaza.blogspot.com/2010/04/howto-setup-local-yum-repository-on.html' title='Howto setup local yum repository on RedHat Fedora12 Centos5.4'/><author><name>Ashwin</name><uri>http://www.blogger.com/profile/09991847790833662522</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3321470074006259731.post-4445044628570485930</id><published>2010-03-25T09:15:00.000-07:00</published><updated>2010-07-18T23:36:20.084-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="System Administration"/><title type='text'>Quick Understanding Linux Cron in under 3 Minutes</title><content type='html'>&lt;p style=&quot;text-align: left;&quot;&gt;&lt;strong&gt;What is Cron?&lt;/strong&gt;&lt;br/&gt;In Layman Languages, cron is a Task scheduler used in Linux operating System (but with Great Powers if used with it Complete functionality) developed by Paul Vixie. You can schedule a specific task to be run every minute,hour,day,month.&lt;br/&gt;&lt;br/&gt;Majorly cron is used to automate jobs daily without human intervention or manual running of command. Cron can be configured using configuration files which resides in &quot;/etc&quot;, changes to which can be done only by the Administrator. Cron also has the feature to run commands using particular user.&lt;br/&gt;&lt;a href=&quot;http://www.linuxmaza.com/wp-content/uploads/2010/03/Cron.jpeg&quot;&gt;&lt;img class=&quot;size-medium wp-image-197 aligncenter&quot; title=&quot;Cron Explained&quot; src=&quot;http://www.linuxmaza.com/wp-content/uploads/2010/03/Cron-300x148.jpg&quot; alt=&quot;Crontab entries&quot; width=&quot;337&quot; height=&quot;165&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;br/&gt;| --------------------------------------------------------------    Minutes (00 - 59)&lt;br/&gt;|    ------------------------------------------------------    Hours (00 - 24)&lt;br/&gt;|    |    ----------------------------------------------    Day of Month (01 - 30)&lt;br/&gt;|    |    |    --------------------------------------    Month (01 - 12)&lt;br/&gt;|    |    |    |    ------------------------------  Day of Week (0 - 6) (Sunday = 0)&lt;br/&gt;|    |    |    |    |    ----------------------    User to the Run the Command&lt;br/&gt;|    |    |    |    |    |        ------    Command / Script to be Executed&lt;br/&gt;|    |    |    |    |    |        |&lt;br/&gt;&lt;br/&gt;*    *    *    *    *    root    /home/linuxmaza.com/htdocs/scripts/Stats_Update.sh&lt;br/&gt;&lt;br/&gt;If you are a lazy System Adminstrator and Dont want to write the whole entry, cron has several special entries which are shortcuts for specifying a Complete entry.&lt;br/&gt;You can specify entries as below&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Entry       ||    Description          ||    Equivalent To&lt;/strong&gt;&lt;br/&gt;=====================================================&lt;br/&gt;@reboot     Run once, at startup.     None&lt;br/&gt;@yearly     Run once a year     0 0 1 1 *&lt;br/&gt;@annually     (same as @yearly)     0 0 1 1 *&lt;br/&gt;@monthly     Run once a month     0 0 1 * *&lt;br/&gt;@weekly     Run once a week     0 0 * * 0&lt;br/&gt;@daily         Run once a day         0 0 * * *&lt;br/&gt;@midnight     (same as @daily)     0 0 * * *&lt;br/&gt;@hourly     Run once an hour     0 * * * *&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Operators in Cron&lt;/strong&gt;&lt;br/&gt;There are way of specifying multiple date and time in a field which can be overcomed using Operators in cron.&lt;br/&gt;&lt;ul&gt;&lt;br/&gt;	&lt;li&gt; The comma (&#39;,&#39;) operator specifies a list of values, for example: &quot;1,3,4,7,8&quot; (Spaces between the values are not accepted)&lt;/li&gt;&lt;br/&gt;	&lt;li&gt; The dash (&#39;-&#39;) operator specifies a range of values, for example: &quot;1-6&quot;, which is equivalent to &quot;1,2,3,4,5,6&quot;&lt;/li&gt;&lt;br/&gt;	&lt;li&gt; The asterisk (&#39;*&#39;) operator specifies all possible values for a field. For example, an asterisk in the hour time field would be equivalent to &#39;every hour&#39; (depending on other values entered in other fields).&lt;/li&gt;&lt;br/&gt;	&lt;li&gt; The Forward Slash (&#39;/&#39;) operator is used to SKIP a given number of values. &quot;Say the value we used is 5&quot; &quot;For Example, &quot;*/5&quot; in the hour time field is equivalent to &quot;0,5,10,15,20&quot; and so on.&lt;/li&gt;&lt;br/&gt;&lt;/ul&gt;&lt;br/&gt;&lt;strong&gt;Cron Advantages :&lt;/strong&gt;&lt;br/&gt;1. Can Handle Multiuser&lt;br/&gt;2. Cron enables users to schedule jobs to run automatically at a certain time or date.&lt;br/&gt;3. Automate daily System Administration tasks&lt;br/&gt;4. Operators in Cron saves time and confusion while creating many crons.&lt;br/&gt;5. Support for Special entries using (@reboot, @yearly, @monthly, @weekly, @hourly, @midnight, @daily).&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Some Examples&lt;/strong&gt;&lt;br/&gt;1. If you want to run a task every Hour&lt;br/&gt;&lt;br/&gt;0 * * * * root w &amp;gt; /var/log/mysystemstats.log&lt;br/&gt;OR&lt;br/&gt;@hourly root w &amp;gt; /var/log/mysystemstats.log&lt;br/&gt;&lt;br/&gt;Above entry would run the &quot;w&quot; command at the start of every hour and redirect the output to &quot;/var/log/mysystemstats.log&quot;&lt;br/&gt;&lt;br/&gt;2. Scheduling a cron job running every 15 minutes to delete apache Logs&lt;br/&gt;&lt;br/&gt;15 * * * * echo &quot; &quot; &amp;gt; /var/log/httpd/access_log&lt;br/&gt;&lt;br/&gt;3. Run a job every 5 hours&lt;br/&gt;* 0,5,10,15,20 * * * echo &quot; &quot; &amp;gt; /var/log/httpd/access_log</content><link rel='replies' type='application/atom+xml' href='http://linuxmaza.blogspot.com/feeds/4445044628570485930/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxmaza.blogspot.com/2010/03/quick-understanding-linux-cron-in-under.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3321470074006259731/posts/default/4445044628570485930'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3321470074006259731/posts/default/4445044628570485930'/><link rel='alternate' type='text/html' href='http://linuxmaza.blogspot.com/2010/03/quick-understanding-linux-cron-in-under.html' title='Quick Understanding Linux Cron in under 3 Minutes'/><author><name>Ashwin</name><uri>http://www.blogger.com/profile/09991847790833662522</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3321470074006259731.post-8822763751158934875</id><published>2010-03-21T05:54:00.000-07:00</published><updated>2010-07-18T23:36:07.981-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="System Administration"/><title type='text'>Script to Check IP on SPAM Sources and getting EMAIL and SMS alerts.</title><content type='html'>As a System Administrators &lt;strong&gt;&quot;The Key to a good performing Server is Good IP Reputation&quot;&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;Maintaining a MAIL Servers or Web Servers is big time for System  Admins,there is always a big fear for your IP getting Blacklisted on different SPAM sources due to which mails originated from your server either are not accepted or deffered by the Recipient Server.It would of great help if we get timely EMAIL as well as SMS alerts of IP getting blacklisted. This would make servers perform well as BOUNCES do use system resources which impact on system overall performance (Explaining Which in this article is OUT OF SCOPE.)&lt;br/&gt;&lt;br/&gt;You can get this by Paying a Handsome amount of money to a Service Provider or DO MY way. I have written a Shell script using which you can  get timely alerts as your IP gets blacklisted. You can put the script in crontab to run every Hour or so.&lt;br/&gt;&lt;br/&gt;To START with Copy the script onto you system&lt;br/&gt;&lt;br/&gt;&lt;pre&gt;# mkdir dnsbl &amp;amp;&amp;amp; cd dnsbl&lt;/pre&gt;&lt;br/&gt;&lt;pre&gt;# vim dnsbl_check.sh&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;Copy the Below Script&lt;br/&gt;&lt;pre&gt;&lt;br/&gt;#!/bin/bash&lt;/code&gt;&lt;br/&gt;&lt;br/&gt;# Date: Mar 20,2010&lt;br/&gt;# Author: Ashwin Muni&lt;br/&gt;# Purpose: Check the IP Against Major SPAM Sources.&lt;br/&gt;&lt;br/&gt;## Uncomment to Debug&lt;br/&gt;# set -x&lt;br/&gt;&lt;br/&gt;# Variables&lt;br/&gt;tmp_file=&#39;/tmp/dnsbl&#39;&lt;br/&gt;&lt;br/&gt;#IN_DNSBL=127.0.0.[2-6]&lt;br/&gt;#IN_DNSBL=127.0.0.&lt;br/&gt;IN_DNSBL=&#39;127.0.0.2|127.0.0.3|127.0.0.4|127.0.0.5|127.0.0.6|127.0.0.7|127.0.0.8|127.0.0.9|127.0.0.10|127.0.0.&#39;&lt;br/&gt;DIG=`which dig`&lt;br/&gt;MAIL_ADMIN=&quot;test@example.com ashwin@linuxmaza.com&quot;&lt;br/&gt;&lt;br/&gt;###################################################&lt;br/&gt;&lt;br/&gt;# SCRIPT START&lt;br/&gt;&lt;br/&gt;&amp;gt; $tmp_file&lt;br/&gt;&lt;br/&gt;echo &quot;Below IPs are Listed&quot; &amp;gt;&amp;gt; $tmp_file&lt;br/&gt;&lt;br/&gt;if [ &quot;$#&quot; == 1 ]; then&lt;br/&gt;&lt;br/&gt;for i in `cat rbllist.txt`; do&lt;br/&gt;IP_REV=`echo $1 | awk -F\. &#39;{ print $4&quot;.&quot;$3&quot;.&quot;$2&quot;.&quot;$1 }&#39;`&lt;br/&gt;$DIG $IP_REV.$i | grep $IN_DNSBL&lt;br/&gt;&lt;br/&gt;if [ $? == &#39;0&#39; ]; then&lt;br/&gt;#echo &quot;$1 Listed on $i&quot;&lt;br/&gt;echo -e &quot;\033[31m \033[1m PROBLEM : Listed on $i \033[0m \033[22m&quot;&lt;br/&gt;echo &quot;################################ Attention : $1 Listed on $i&quot; &amp;gt;&amp;gt; $tmp_file&lt;br/&gt;else&lt;br/&gt;echo -e &quot;Not Listed on $i : \033[32m \033[1m OK \033[22m \033[0m &quot;&lt;br/&gt;echo &quot;$1 Not Listed on $i&quot; &amp;gt;&amp;gt; $tmp_file&lt;br/&gt;fi&lt;br/&gt;done&lt;br/&gt;&lt;br/&gt;echo -e &quot;\033[31m \033[1m ===================$1 is LISTED ON BELOW SPAM SOURCES====================== \033[0m \033[22m&quot;&lt;br/&gt;&lt;br/&gt;cat $tmp_file | mail -s &quot;DNSBL REPORT FOR $1&quot; $MAIL_ADMIN&lt;br/&gt;&lt;br/&gt;else&lt;br/&gt;&lt;br/&gt;echo -e &quot;\t\t\t\t\033[31m \033[1m Enter Proper Arguments:\n Script Usage :\n /bin/sh $0 IP.ADD.RE.SS \033[0m \033[22m&quot;&lt;br/&gt;&lt;br/&gt;# EOF&lt;br/&gt;&lt;br/&gt;################################################&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;Save the file Using &quot;:wq&quot;&lt;br/&gt;&lt;br/&gt;Make necessary changes in the Script like the System Admin email address to sent Emails.&lt;br/&gt;&lt;br/&gt;You will need the SPAM sources to check which you can find Here &lt;a href=&quot;http://www.linuxmaza.com/system-administration/major-spam-sources-where-your-ips-can-get-blacklisted-which-could-affect-your-service/&quot;&gt;MAJOR SPAM SOURCES&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;Copy all the SPAM Sources and paste it in a txt file named &quot;rbllist.txt&quot;&lt;br/&gt;&lt;br/&gt;&lt;pre&gt;# vi rbllist.txt&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;Should show you all the Major SPAM Sources for Checking your IPs.&lt;br/&gt;&lt;br/&gt;Note: The script and the rbllist.txt should exist in the Same directory.&lt;br/&gt;&lt;br/&gt;Once done we will give executable permission to the script which allows us to run it.&lt;br/&gt;&lt;br/&gt;&lt;pre&gt;# chmod 755 dnsbl_check.sh&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;OR&lt;br/&gt;&lt;br/&gt;&lt;pre&gt;# chmod +x dnsbl_check.sh&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;Now Run the Script&lt;br/&gt;&lt;br/&gt;&lt;pre&gt;#./dnsbl_check.sh 100.200.100.200&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;You can put the script in crontab to run it regularly.</content><link rel='replies' type='application/atom+xml' href='http://linuxmaza.blogspot.com/feeds/8822763751158934875/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxmaza.blogspot.com/2010/03/script-to-check-ip-on-spam-sources-and.html#comment-form' title='17 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3321470074006259731/posts/default/8822763751158934875'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3321470074006259731/posts/default/8822763751158934875'/><link rel='alternate' type='text/html' href='http://linuxmaza.blogspot.com/2010/03/script-to-check-ip-on-spam-sources-and.html' title='Script to Check IP on SPAM Sources and getting EMAIL and SMS alerts.'/><author><name>Ashwin</name><uri>http://www.blogger.com/profile/09991847790833662522</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>17</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3321470074006259731.post-1380033963594373879</id><published>2010-03-21T05:40:00.000-07:00</published><updated>2010-07-18T23:35:59.108-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="System Administration"/><title type='text'>MAJOR SPAM Sources where your IPs can get blacklisted which could&#xa;affect your service.</title><content type='html'>MAJOR SPAM Sources where your IPs can get blacklisted which could affect your service. Most of the Players in the market like Yahoo, Google, Hotmail use this for stopping huge SPAM to their servers. Many appliances do the same to STOP SPAM.&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;SPAM Sources&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;3y.spam.mrs.kithrup.com&lt;br/&gt;access.redhawk.org&lt;br/&gt;all.rbl.kropka.net&lt;br/&gt;all.spamblock.unit.liu.se&lt;br/&gt;assholes.madscience.nl&lt;br/&gt;blackholes.five-ten-sg.com&lt;br/&gt;blackholes.intersil.net&lt;br/&gt;blackholes.mail-abuse.org&lt;br/&gt;blackholes.sandes.dk&lt;br/&gt;blackholes.uceb.org&lt;br/&gt;blackholes.wirehub.net&lt;br/&gt;blacklist.sci.kun.nl&lt;br/&gt;blacklist.spambag.org&lt;br/&gt;bl.borderworlds.dk&lt;br/&gt;bl.csma.biz&lt;br/&gt;block.dnsbl.sorbs.net&lt;br/&gt;blocked.hilli.dk&lt;br/&gt;blocklist2.squawk.com&lt;br/&gt;blocklist.squawk.com&lt;br/&gt;bl.redhatgate.com&lt;br/&gt;bl.spamcannibal.org&lt;br/&gt;bl.spamcop.net&lt;br/&gt;bl.starloop.com&lt;br/&gt;bl.technovision.dk&lt;br/&gt;cart00ney.surriel.com&lt;br/&gt;cbl.abuseat.org&lt;br/&gt;dev.null.dk&lt;br/&gt;dews.qmail.org&lt;br/&gt;dialup.blacklist.jippg.org&lt;br/&gt;dialup.rbl.kropka.net&lt;br/&gt;dialups.mail-abuse.org&lt;br/&gt;dialups.visi.com&lt;br/&gt;dnsbl-1.uceprotect.net&lt;br/&gt;dnsbl-2.uceprotect.net&lt;br/&gt;dnsbl-3.uceprotect.net&lt;br/&gt;dnsbl.ahbl.org&lt;br/&gt;dnsbl.antispam.or.id&lt;br/&gt;dnsbl.cyberlogic.net&lt;br/&gt;dnsbl.kempt.net&lt;br/&gt;dnsbl.njabl.org&lt;br/&gt;dnsbl.solid.net&lt;br/&gt;dnsbl.sorbs.net&lt;br/&gt;dsbl.dnsbl.net.au&lt;br/&gt;duinv.aupads.org&lt;br/&gt;dul.dnsbl.sorbs.net&lt;br/&gt;dul.ru&lt;br/&gt;dun.dnsrbl.net&lt;br/&gt;dynablock.njabl.org&lt;br/&gt;dynablock.wirehub.net&lt;br/&gt;fl.chickenboner.biz&lt;br/&gt;forbidden.icm.edu.pl&lt;br/&gt;form.rbl.kropka.net&lt;br/&gt;hil.habeas.com&lt;br/&gt;http.dnsbl.sorbs.net&lt;br/&gt;http.opm.blitzed.org&lt;br/&gt;intruders.docs.uu.se&lt;br/&gt;ip.rbl.kropka.net&lt;br/&gt;korea.services.net&lt;br/&gt;l1.spews.dnsbl.sorbs.net&lt;br/&gt;l2.spews.dnsbl.sorbs.net&lt;br/&gt;lame-av.rbl.kropka.net&lt;br/&gt;list.dsbl.org&lt;br/&gt;mail-abuse.blacklist.jippg.org&lt;br/&gt;map.spam-rbl.com&lt;br/&gt;misc.dnsbl.sorbs.net&lt;br/&gt;msgid.bl.gweep.ca&lt;br/&gt;multihop.dsbl.org&lt;br/&gt;no-more-funn.moensted.dk&lt;br/&gt;ohps.bl.reynolds.net.au&lt;br/&gt;ohps.dnsbl.net.au&lt;br/&gt;omrs.bl.reynolds.net.au&lt;br/&gt;omrs.dnsbl.net.au&lt;br/&gt;opm.blitzed.org&lt;br/&gt;op.rbl.kropka.net&lt;br/&gt;orbs.dorkslayers.com&lt;br/&gt;orid.dnsbl.net.au&lt;br/&gt;or.rbl.kropka.net&lt;br/&gt;orvedb.aupads.org&lt;br/&gt;osps.bl.reynolds.net.au&lt;br/&gt;osps.dnsbl.net.au&lt;br/&gt;osrs.bl.reynolds.net.au&lt;br/&gt;osps.dnsbl.net.au&lt;br/&gt;osrs.bl.reynolds.net.au&lt;br/&gt;osrs.dnsbl.net.au&lt;br/&gt;owfs.bl.reynolds.net.au&lt;br/&gt;owfs.dnsbl.net.au&lt;br/&gt;owps.bl.reynolds.net.au&lt;br/&gt;owps.dnsbl.net.au&lt;br/&gt;pdl.dnsbl.net.au&lt;br/&gt;probes.dnsbl.net.au&lt;br/&gt;proxy.bl.gweep.ca&lt;br/&gt;psbl.surriel.com&lt;br/&gt;pss.spambusters.org.ar&lt;br/&gt;rbl.cluecentral.net&lt;br/&gt;rblmap.tu-berlin.de&lt;br/&gt;rbl.rangers.eu.org&lt;br/&gt;rbl.schulte.org&lt;br/&gt;rbl.snark.net&lt;br/&gt;rbl.triumf.ca&lt;br/&gt;rdts.bl.reynolds.net.au&lt;br/&gt;rdts.dnsbl.net.au&lt;br/&gt;relays.bl.gweep.ca&lt;br/&gt;relays.bl.kundenserver.de&lt;br/&gt;relays.dorkslayers.com&lt;br/&gt;relays.mail-abuse.org&lt;br/&gt;relays.nether.net&lt;br/&gt;relays.visi.com&lt;br/&gt;ricn.bl.reynolds.net.au&lt;br/&gt;ricn.dnsbl.net.au&lt;br/&gt;rmst.bl.reynolds.net.au&lt;br/&gt;rmst.dnsbl.net.au&lt;br/&gt;rsbl.aupads.org&lt;br/&gt;satos.rbl.cluecentral.net&lt;br/&gt;sbl.csma.biz&lt;br/&gt;sbl.spamhaus.org&lt;br/&gt;sbl-xbl.spamhaus.org&lt;br/&gt;smtp.dnsbl.sorbs.net&lt;br/&gt;socks.dnsbl.sorbs.net&lt;br/&gt;socks.opm.blitzed.org&lt;br/&gt;sorbs.dnsbl.net.au&lt;br/&gt;spam.dnsbl.sorbs.net&lt;br/&gt;spam.dnsrbl.net&lt;br/&gt;spamguard.leadmon.net&lt;br/&gt;spam.olsentech.net&lt;br/&gt;spamsites.dnsbl.net.au&lt;br/&gt;spamsources.dnsbl.info&lt;br/&gt;spamsources.fabel.dk&lt;br/&gt;spamsources.yamta.org&lt;br/&gt;spam.wytnij.to&lt;br/&gt;spews.dnsbl.net.au&lt;br/&gt;t1.bl.reynolds.net.au&lt;br/&gt;t1.dnsbl.net.au&lt;br/&gt;ucepn.dnsbl.net.au&lt;br/&gt;unconfirmed.dsbl.org&lt;br/&gt;vbl.messagelabs.com&lt;br/&gt;vox.schpider.com&lt;br/&gt;web.dnsbl.sorbs.net&lt;br/&gt;whois.rfc-ignorant.org&lt;br/&gt;will-spam-for-food.eu.org&lt;br/&gt;wingate.opm.blitzed.org&lt;br/&gt;xbl.spamhaus.org&lt;br/&gt;zombie.dnsbl.sorbs.net&lt;br/&gt;ztl.dorkslayers.com&lt;br/&gt;&lt;br/&gt;Check you IP if is blacklisted using a script SPAM-IP Reputation Check Script</content><link rel='replies' type='application/atom+xml' href='http://linuxmaza.blogspot.com/feeds/1380033963594373879/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxmaza.blogspot.com/2010/03/major-spam-sources-where-your-ips-can.html#comment-form' title='13 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3321470074006259731/posts/default/1380033963594373879'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3321470074006259731/posts/default/1380033963594373879'/><link rel='alternate' type='text/html' href='http://linuxmaza.blogspot.com/2010/03/major-spam-sources-where-your-ips-can.html' title='MAJOR SPAM Sources where your IPs can get blacklisted which could&#xa;affect your service.'/><author><name>Ashwin</name><uri>http://www.blogger.com/profile/09991847790833662522</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>13</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3321470074006259731.post-3587381257751698095</id><published>2010-03-07T10:33:00.000-08:00</published><updated>2010-07-18T23:35:56.175-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux Interviews FAQ"/><title type='text'>Top Linux Admin Interview Questions and answers asked in TOP IT&#xa;industries : Question Bank 06</title><content type='html'>&lt;h1&gt;&lt;strong&gt;Linux Admin Interview Questions and Answers&lt;/strong&gt;&lt;/h1&gt;&lt;br/&gt;Questions consists of Linux Admin Interview Questions and Answers, Linux Administration questions, Linux Networking questions, MYSQL questions, bash, postfix questions, sendmail questions, ftp server questions&lt;br/&gt;&lt;h2&gt;&lt;strong&gt;Questions BANK 06&lt;/strong&gt;&lt;/h2&gt;&lt;br/&gt;&lt;strong&gt;# What command can you use to review boot messages?&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# What file defines the levels of messages written to system log files?&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# What account is created when you install Linux?&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# While logged on as a regular user, your boss calls up and wants you to create a new user account immediately. How can you do this without first having to close your work, log off and logon as root? Choose one: &lt;/strong&gt;&lt;br/&gt;a. Issue the command rootlog.&lt;br/&gt;b. Issue the command su and type exit when finished.&lt;br/&gt;c. Issue the command su and type logoff when finished.&lt;br/&gt;d. Issue the command logon root and type exit when finished.&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# Which file defines all users on your system? Choose one: &lt;/strong&gt;&lt;br/&gt;a. /etc/passwd&lt;br/&gt;b. /etc/users&lt;br/&gt;c. /etc/password&lt;br/&gt;d. /etc/user.conf&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# There are seven fields in the /etc/passwd file. Which of the following lists all the fields in the correct order? Choose one: &lt;/strong&gt;&lt;br/&gt;a. username, UID, GID, home directory, command, comment&lt;br/&gt;b. username, UID, GID, comment, home directory, command&lt;br/&gt;c. UID, username, GID, home directory, comment, command&lt;br/&gt;d. username, UID, group name, GID, home directory, comment&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# Which of the following user names is invalid? Choose one: &lt;/strong&gt;&lt;br/&gt;a. Theresa Hadden&lt;br/&gt;b. thadden&lt;br/&gt;c. TheresaH&lt;br/&gt;d. T.H.&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# In order to prevent a user from logging in, you can add a(n) ________at the beginning of the password field.&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# The beginning user identifier is defined in the _________ file.&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# Which field is used to define the user’s default shell?&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# Bob Armstrong, who has a username of boba, calls to tell you he forgot his password. What command should you use to reset his command?&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# Your company has implemented a policy that users’ passwords must be reset every ninety days. Since you have over 100 users you created a file with each username and the new password. How are you going to change the old passwords to the new ones? Choose one: &lt;/strong&gt;&lt;br/&gt;a. Use the chpasswd command along with the name of the file containing the new passwords.&lt;br/&gt;b. Use the passwd command with the -f option and the name of the file containing the new passwords.&lt;br/&gt;c. Open the /etc/passwd file in a text editor and manually change each password.&lt;br/&gt;d. Use the passwd command with the -u option.</content><link rel='replies' type='application/atom+xml' href='http://linuxmaza.blogspot.com/feeds/3587381257751698095/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxmaza.blogspot.com/2010/03/top-linux-admin-interview-questions-and_07.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3321470074006259731/posts/default/3587381257751698095'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3321470074006259731/posts/default/3587381257751698095'/><link rel='alternate' type='text/html' href='http://linuxmaza.blogspot.com/2010/03/top-linux-admin-interview-questions-and_07.html' title='Top Linux Admin Interview Questions and answers asked in TOP IT&#xa;industries : Question Bank 06'/><author><name>Ashwin</name><uri>http://www.blogger.com/profile/09991847790833662522</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3321470074006259731.post-463924478321765677</id><published>2010-03-05T17:00:00.000-08:00</published><updated>2010-07-18T23:35:53.871-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux Interviews FAQ"/><title type='text'>Top Linux Admin Interview Questions and answers asked in TOP IT&#xa;industries : Question Bank 05</title><content type='html'>Linux Admin Interview Questions and Answers&lt;br/&gt;&lt;br/&gt;Questions consists of Linux Admin Interview Questions and Answers, Linux Administration questions, Linux Networking questions, MYSQL questions, bash, postfix questions, sendmail questions, ftp server questions&lt;br/&gt;&lt;h2&gt;&lt;strong&gt;Questions BANK 05&lt;/strong&gt;&lt;/h2&gt;&lt;br/&gt;&lt;strong&gt;# As the system administrator you need to review Bob’s cronjobs. What command would you use? Choose one: &lt;/strong&gt;&lt;br/&gt;a. crontab -lu bob&lt;br/&gt;b. crontab -u bob&lt;br/&gt;c. crontab -l&lt;br/&gt;d. cronq -lu bob&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# In order to schedule a cronjob, the first task is to create a text file containing the jobs to be run along with the time they are to run. Which of the following commands will run the script MyScript every day at 11:45 pm? Choose one: &lt;/strong&gt;&lt;br/&gt;a. * 23 45 * * MyScript&lt;br/&gt;b. 23 45 * * * MyScript&lt;br/&gt;c. 45 23 * * * MyScript&lt;br/&gt;d. * * * 23 45 MyScript&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# Which daemon must be running in order to have any scheduled jobs run as scheduled? Choose one: &lt;/strong&gt;&lt;br/&gt;a. crond&lt;br/&gt;b. atd&lt;br/&gt;c. atrun&lt;br/&gt;d. crontab&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# You want to ensure that your system is not overloaded with users running multiple scheduled jobs. A policy has been established that only the system administrators can create any scheduled jobs. It is your job to implement this policy. How are you going to do this? Choose one: &lt;/strong&gt;&lt;br/&gt;a. create an empty file called /etc/cron.deny&lt;br/&gt;b. create a file called /etc/cron.allow which contains the names of those allowed to schedule jobs.&lt;br/&gt;c. create a file called /etc/cron.deny containing all regular usernames.&lt;br/&gt;d. create two empty files called /etc/cron.allow and /etc/cron.deny&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# You notice that your server load is exceptionally high during the hours of 10 am to 2 noon. When investigating the cause, you suspect that it may be a cron job scheduled by one of your users. What command can you use to determine if your suspicions are correct? Choose one: &lt;/strong&gt;&lt;br/&gt;a. crontab -u&lt;br/&gt;b. crond -u&lt;br/&gt;c. crontab -l&lt;br/&gt;d. crond -l&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# One of your users, Bob, has created a script to reindex his database. Now he has it scheduled to run every day at 10:30 am. What command should you use to delete this job. Choose one: &lt;/strong&gt;&lt;br/&gt;a. crontab -ru bob&lt;br/&gt;b. crontab -u bob&lt;br/&gt;c. crontab -du bob&lt;br/&gt;d. crontab -lu bob&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# What daemon is responsible for tracking events on your system?&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# What is the name and path of the default configuration file used by the syslogd daemon?&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# You have made changes to the /etc/syslog.conf file. Which of the following commands will cause these changes to be implemented without having to reboot your computer? Choose one: &lt;/strong&gt;&lt;br/&gt;a. kill SIGHINT `cat /var/run/syslogd.pid`&lt;br/&gt;b. kill SIGHUP `cat /var/run/syslogd.pid`&lt;br/&gt;c. kill SIGHUP syslogd&lt;br/&gt;d. kill SIGHINT syslogd&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# Which of the following lines in your /etc/syslog.conf file will cause all critical messages to be logged to the file /var/log/critmessages? Choose one: &lt;/strong&gt;&lt;br/&gt;a. *.=crit /var/log/critmessages&lt;br/&gt;b. *crit /var/log/critmessages&lt;br/&gt;c. *=crit /var/log/critmessages&lt;br/&gt;d. *.crit /var/log/critmessages&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# You wish to have all mail messages except those of type info to the /var/log/mailmessages file. Which of the following lines in your /etc/syslogd.conf file would accomplish this? Choose one: &lt;/strong&gt;&lt;br/&gt;a. mail.*;mail!=info /var/log/mailmessages&lt;br/&gt;b. mail.*;mail.=info /var/log/mailmessages&lt;br/&gt;c. mail.*;mail.info /var/log/mailmessages&lt;br/&gt;d. mail.*;mail.!=info /var/log/mailmessages&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# What is the name and path of the main system log?&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# Which log contains information on currently logged in users? Choose one: &lt;/strong&gt;&lt;br/&gt;a. /var/log/utmp&lt;br/&gt;b. /var/log/wtmp&lt;br/&gt;c. /var/log/lastlog&lt;br/&gt;d. /var/log/messages&lt;br/&gt;&lt;br/&gt;# You have been assigned the task of determining if there are any user accounts defined on your system that have not been used during the last three months. Which log file should you examine to determine this information? Choose one:&lt;br/&gt;a. /var/log/wtmp&lt;br/&gt;b. /var/log/lastlog&lt;br/&gt;c. /var/log/utmp&lt;br/&gt;d. /var/log/messages&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# You have been told to configure a method of rotating log files on your system. Which of the following factors do you not need to consider? Choose one: &lt;/strong&gt;&lt;br/&gt;a. date and time of messages&lt;br/&gt;b. log size&lt;br/&gt;c. frequency of rotation&lt;br/&gt;d. amount of available disk space&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# What utility can you use to automate rotation of logs?&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# You wish to rotate all your logs weekly except for the /var/log/wtmp log which you wish to rotate monthly. How could you accomplish this. Choose one: &lt;/strong&gt;&lt;br/&gt;a. Assign a global option to rotate all logs weekly and a local option to rotate the /var/log/wtmp log monthly.&lt;br/&gt;b. Assign a local option to rotate all logs weekly and a global option to rotate the /var/log/wtmp log monthly.&lt;br/&gt;c. Move the /var/log/wtmp log to a different directory. Run logrotate against the new location.&lt;br/&gt;d. Configure logrotate to not rotate the /var/log/wtmp log. Rotate it manually every month.&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# You have configured logrotate to rotate your logs weekly and keep them for eight weeks. You are running our of disk space. What should you do? Choose one: &lt;/strong&gt;&lt;br/&gt;a. Quit using logrotate and manually save old logs to another location.&lt;br/&gt;b. Reconfigure logrotate to only save logs for four weeks.&lt;br/&gt;c. Configure logrotate to save old files to another location.&lt;br/&gt;d. Use the prerotate command to run a script to move the older logs to another location.</content><link rel='replies' type='application/atom+xml' href='http://linuxmaza.blogspot.com/feeds/463924478321765677/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxmaza.blogspot.com/2010/03/top-linux-admin-interview-questions-and_05.html#comment-form' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3321470074006259731/posts/default/463924478321765677'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3321470074006259731/posts/default/463924478321765677'/><link rel='alternate' type='text/html' href='http://linuxmaza.blogspot.com/2010/03/top-linux-admin-interview-questions-and_05.html' title='Top Linux Admin Interview Questions and answers asked in TOP IT&#xa;industries : Question Bank 05'/><author><name>Ashwin</name><uri>http://www.blogger.com/profile/09991847790833662522</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3321470074006259731.post-2546686477576254765</id><published>2010-03-05T10:15:00.000-08:00</published><updated>2010-07-18T23:35:50.395-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux Interviews FAQ"/><title type='text'>Top Linux Admin Interview Questions and answers asked in TOP IT&#xa;industries : Question Bank 04</title><content type='html'>&lt;strong&gt;Linux Admin Interview Questions and Answers&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;All Linux Administration questions, Linux Networking questions, MYSQL questions, bash, postfix questions, sendmail questions, ftp server questions&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Questions BANK 04&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# You enter the command cat MyFile | sort &amp;gt; DirList &amp;amp; and the operating system displays [4] 3499 What does this mean? Choose one &lt;/strong&gt;&lt;br/&gt;a. This is job number 4 and the PID of the sort command is 3499.&lt;br/&gt;b. This is job number 4 and the PID of the job is 3499.&lt;br/&gt;c. This is job number 3499 and the PID of the cat command is 4.&lt;br/&gt;d. This is job number 4 and the PID of the cat command is 3499.&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# You attempt to log out but receive an error message that you cannot. When you issue the jobs command, you see a process that is running in the background. How can you fix this so that you can logout? Choose one &lt;/strong&gt;&lt;br/&gt;a. Issue the kill command with the PID of each running command of the pipeline as an argument.&lt;br/&gt;b. Issue the kill command with the job number as an argument.&lt;br/&gt;c. Issue the kill command with the PID of the last command as an argument.&lt;br/&gt;d. Issue the kill command without any arguments.&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# You have been given the job of administering a new server. It houses a database used by the sales people. This information is changed frequently and is not duplicated anywhere else. What should you do to ensure that this information is not lost? Choose one &lt;/strong&gt;&lt;br/&gt;a. Create a backup strategy that includes backing up this information at least daily.&lt;br/&gt;b. Prepare a proposal to purchase a backup server&lt;br/&gt;c. Recommend that the server be made part of a cluster.&lt;br/&gt;d. Install an additional hard drive in the server.&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# When planning your backup strategy you need to consider how often you will perform a backup, how much time the backup takes and what media you will use. What other factor must you consider when planning your backup strategy? _________&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# Many factors are taken into account when planning a backup strategy. The one most important one is how often does the file ____________.&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# Which one of the following factors does not play a role in choosing the type of backup media to use? Choose one: &lt;/strong&gt;&lt;br/&gt;a. How frequently a file changes&lt;br/&gt;b. How long you need to retain the backup&lt;br/&gt;c. How much data needs to be backed up&lt;br/&gt;d. How frequently the backed up data needs to be accessed&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# When you only back up one partition, this is called a ______ backup. Choose one &lt;/strong&gt;&lt;br/&gt;a. Differential&lt;br/&gt;b. Full&lt;br/&gt;c. Partial&lt;br/&gt;d. Copy&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# When you back up only the files that have changed since the last backup, this is called a ______ backup. Choose one &lt;/strong&gt;&lt;br/&gt;a. Partial&lt;br/&gt;b. Differential&lt;br/&gt;c. Full&lt;br/&gt;d. Copy&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# The easiest, most basic form of backing up a file is to _____ it to another location.&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# When is the most important time to restore a file from your backup? Choose one &lt;/strong&gt;&lt;br/&gt;a. On a regular scheduled basis to verify that the data is available.&lt;br/&gt;b. When the system crashes.&lt;br/&gt;c. When a user inadvertently loses a file.&lt;br/&gt;d. When your boss asks to see how restoring a file works.&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# As a system administrator, you are instructed to backup all the users’ home directories. Which of the following commands would accomplish this? Choose one &lt;/strong&gt;&lt;br/&gt;a. tar rf usersbkup home/*&lt;br/&gt;b. tar cf usersbkup home/*&lt;br/&gt;c. tar cbf usersbkup home/*&lt;br/&gt;d. tar rvf usersbkup home/*&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# What is wrong with the following command? tar cvfb / /dev/tape 20 Choose one &lt;/strong&gt;&lt;br/&gt;a. You cannot use the c option with the b option.&lt;br/&gt;b. The correct line should be tar -cvfb / /dev/tape20.&lt;br/&gt;c. The arguments are not in the same order as the corresponding modifiers.&lt;br/&gt;d. The files to be backed up have not been specified.&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# You need to view the contents of the tarfile called MyBackup.tar. What command would you use? __________&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# After creating a backup of the users’ home directories called backup.cpio you are asked to restore a file called memo.ben. What command should you type?&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# You want to create a compressed backup of the users’ home directories so you issue the command gzip /home/* backup.gz but it fails. The reason that it failed is that gzip will only compress one _______ at a time.&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# You want to create a compressed backup of the users’ home directories. What utility should you use?&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# You routinely compress old log files. You now need to examine a log from two months ago. In order to view its contents without first having to decompress it, use the _________ utility.&lt;/strong&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxmaza.blogspot.com/feeds/2546686477576254765/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxmaza.blogspot.com/2010/03/top-linux-admin-interview-questions-and.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3321470074006259731/posts/default/2546686477576254765'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3321470074006259731/posts/default/2546686477576254765'/><link rel='alternate' type='text/html' href='http://linuxmaza.blogspot.com/2010/03/top-linux-admin-interview-questions-and.html' title='Top Linux Admin Interview Questions and answers asked in TOP IT&#xa;industries : Question Bank 04'/><author><name>Ashwin</name><uri>http://www.blogger.com/profile/09991847790833662522</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3321470074006259731.post-2079096066584218248</id><published>2010-03-05T07:20:00.000-08:00</published><updated>2010-07-18T23:35:49.338-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux Interviews FAQ"/><title type='text'>Top Linux Admin Interview Questions asked in TOP IT industries :&#xa;Question Bank 3</title><content type='html'>Linux Admin Interview Questions and Answers&lt;br/&gt;&lt;br/&gt;Questions consists of Linux Admin Interview Questions and Answers, Linux Administration questions, Linux Networking questions, MYSQL questions, bash, postfix questions, sendmail questions, ftp server questions&lt;br/&gt;&lt;h2&gt;&lt;strong&gt;Questions BANK 03&lt;/strong&gt;&lt;/h2&gt;&lt;br/&gt;&lt;strong&gt;# When typing at the command line, the default editor is the _____________ library.&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# You typed the following at the command line ls -al /home/ hadden. What key strokes would you enter to remove the space between the ‘/’ and ‘hadden’ without having to retype the entire line? Choose one &lt;/strong&gt;&lt;br/&gt;a. Ctrl-B, Del&lt;br/&gt;b. Esc-b, Del&lt;br/&gt;c. Esc-Del, Del&lt;br/&gt;d. Ctrl-b, Del&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# You would like to temporarily change your command line editor to be vi. What command should you type to change it?&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# After experimenting with vi as your command line editor, you decide that you want to have vi your default editor every time you log in. What would be the appropriate way to do this? Choose one &lt;/strong&gt;&lt;br/&gt;a. Change the /etc/inputrc file&lt;br/&gt;b. Change the /etc/profile file&lt;br/&gt;c. Change the ~/.inputrc file&lt;br/&gt;d. Change the ~/.profile file&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# You have to type your name and title frequently throughout the day and would like to decrease the number of key strokes you use to type this. Which one of your configuration files would you edit to bind this information to one of the function keys?&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# In your present working directory, you have the files maryletter memo1 MyTelephoneandAddressBook What is the fewest number of keys you can type to open the file MyTelephoneandAddressBook with vi? Choose one &lt;/strong&gt;&lt;br/&gt;a. 6&lt;br/&gt;b. 28&lt;br/&gt;c. 25&lt;br/&gt;d. 4&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# A variable that you can name and assign a value to is called a _____________ variable.&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;# You have installed a new application but when you type in the command to start it you get the error message Command not found. What do you need to do to fix this problem? Choose one&lt;br/&gt;a. Add the directory containing the application to your path&lt;br/&gt;b. Specify the directory’s name whenever you run the application&lt;br/&gt;c. Verify that the execute permission has been applied to the command.&lt;br/&gt;d. Give everyone read, write and execute permission to the application’s directory.&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# You telnet into several of your servers simultaneously. During the day, you sometimes get confused as to which telnet session is connected to which server. Which of the following commands in your .profile file would make it obvious to which server you are attached? Choose one &lt;/strong&gt;&lt;br/&gt;a. PS1=’\h: \w&amp;gt;’&lt;br/&gt;b. PS1=’\s: \W&amp;gt;’&lt;br/&gt;c. PS1=’\!: \t&amp;gt;’&lt;br/&gt;d. PS1=’\a: \n&amp;gt;’&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# Which of the following environment variables determines your working directory at the completion of a successful login? Choose one &lt;/strong&gt;&lt;br/&gt;a. HOME&lt;br/&gt;b. BASH_ENV&lt;br/&gt;c. PWD&lt;br/&gt;d. BLENDERDIR&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# Every time you attempt to delete a file using the rm utility, the operating system prompts you for confirmation. You know that this is not the customary behavior for the rm command. What is wrong? Choose one &lt;/strong&gt;&lt;br/&gt;a. rm has been aliased as rm -i&lt;br/&gt;b. The version of rm installed on your system is incorrect.&lt;br/&gt;c. This is the normal behavior of the newest version of rm.&lt;br/&gt;d. There is an incorrect link on your system.&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# You are running out of space in your home directory. While looking for files to delete or compress you find a large file called .bash_history and delete it. A few days later, it is back and as large as before. What do you need to do to ensure that its size is smaller? Choose one &lt;/strong&gt;&lt;br/&gt;a. Set the HISTFILESIZE variable to a smaller number.&lt;br/&gt;b. Set the HISTSIZE to a smaller number.&lt;br/&gt;c. Set the NOHISTFILE variable to true.&lt;br/&gt;d. Set the HISTAPPEND variable to true.&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# In order to display the last five commands you have entered using the history command, you would type ___________.&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# In order to display the last five commands you have entered using the fc command, you would type ___________.&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# You previously ran the find command to locate a particular file. You want to run that command again. What would be the quickest way to do this? Choose one &lt;/strong&gt;&lt;br/&gt;a. fc -l find fc n&lt;br/&gt;b. history -l find history n&lt;br/&gt;c. Retype the command&lt;br/&gt;d. fc -n find&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# Using command substitution, how would you display the value of the present working directory? Choose one &lt;/strong&gt;&lt;br/&gt;a. echo $(pwd)&lt;br/&gt;b. echo pwd&lt;br/&gt;c. $pwd&lt;br/&gt;d. pwd | echo&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# You need to search the entire directory structure to locate a specific file. How could you do this and still be able to run other commands while the find command is still searching for your file? Choose one &lt;/strong&gt;&lt;br/&gt;a. find / -name filename &amp;amp;&lt;br/&gt;b. find / -name filename&lt;br/&gt;c. bg find / -name filename&lt;br/&gt;d. &amp;amp;find / -name filename &amp;amp;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# In order to create a file called DirContents containing the contents of the /etc directory you would type ____________.&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# What would be displayed as the result of issuing the command ps ef? Choose one &lt;/strong&gt;&lt;br/&gt;a. A listing of the user’s running processes formatted as a tree.&lt;br/&gt;b. A listing of the stopped processes&lt;br/&gt;c. A listing of all the running processes formatted as a tree.&lt;br/&gt;d. A listing of all system processes formatted as a tree.&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# What utility can you use to show a dynamic listing of running processes? __________&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# The top utility can be used to change the priority of a running process? Another utility that can also be used to change priority is ___________?&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# What key combination can you press to suspend a running job and place it in the background?&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# You issue the command jobs and receive the following output: [1]- Stopped (tty output) pine [2]+ Stopped (tty output) MyScript How would you bring the MyScript process to the foreground? Choose one: &lt;/strong&gt;&lt;br/&gt;a. fg %2&lt;br/&gt;b. ctrl-c&lt;br/&gt;c. fg MyScript&lt;br/&gt;d. ctrl-z</content><link rel='replies' type='application/atom+xml' href='http://linuxmaza.blogspot.com/feeds/2079096066584218248/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxmaza.blogspot.com/2010/03/top-linux-admin-interview-questions_2380.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3321470074006259731/posts/default/2079096066584218248'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3321470074006259731/posts/default/2079096066584218248'/><link rel='alternate' type='text/html' href='http://linuxmaza.blogspot.com/2010/03/top-linux-admin-interview-questions_2380.html' title='Top Linux Admin Interview Questions asked in TOP IT industries :&#xa;Question Bank 3'/><author><name>Ashwin</name><uri>http://www.blogger.com/profile/09991847790833662522</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3321470074006259731.post-7025995056568549341</id><published>2010-03-05T07:01:00.000-08:00</published><updated>2010-07-18T23:35:46.494-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Sendmail"/><title type='text'>Top Linux Admin Interview Questions asked in TOP IT industries :&#xa;Question Bank 2</title><content type='html'>Top Linux Admin Interview Questions and Answers&lt;br/&gt;&lt;br/&gt;Questions consists of Linux Admin Interview Questions and Answers, Linux Administration questions, Linux Networking questions, MYSQL questions, bash, postfix questions, sendmail questions, ftp server questions&lt;br/&gt;&lt;h2&gt;&lt;strong&gt;Questions BANK 02&lt;/strong&gt;&lt;/h2&gt;&lt;br/&gt;&lt;strong&gt;# What command is used to remove the password assigned to a group?&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# You changed the GID of the sales group by editing the /etc/group file. All of the members can change to the group without any problem except for Joe. He cannot even login to the system. What is the problem? Choose one: &lt;/strong&gt;&lt;br/&gt;a. Joe forgot the password for the group.&lt;br/&gt;b. You need to add Joe to the group again.&lt;br/&gt;c. Joe had the original GID specified as his default group in the /etc/passwd file.&lt;br/&gt;d. You need to delete Joe’s account and recreate it.&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# You need to delete the group dataproject. Which two of the following tasks should you do first before deleting the group? &lt;/strong&gt;&lt;br/&gt;A. Check the /etc/passwd file to make sure no one has this group as his default group.&lt;br/&gt;B. Change the members of the dataproject group to another group besides users.&lt;br/&gt;C. Make sure that the members listed in the /etc/group file are given new login names.&lt;br/&gt;D. Verify that no file or directory has this group listed as its owner.&lt;br/&gt;Choose one: a. A and C b. A and D c. B and C d. B and D&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# When you look at the /etc/group file you see the group kmem listed. Since it does not own any files and no one is using it as a default group, can you delete this group?&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;# When looking at the /etc/passwd file, you notice that all the password fields contain ‘x’. What does this mean? Choose one:&lt;br/&gt;a. That the password is encrypted.&lt;br/&gt;b. That you are using shadow passwords.&lt;br/&gt;c. That all passwords are blank.&lt;br/&gt;d. That all passwords have expired.&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# In order to improve your system’s security you decide to implement shadow passwords. What command should you use?&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# What file contains the default environment variables when using the bash shell? Choose one: &lt;/strong&gt;&lt;br/&gt;a. ~/.profile&lt;br/&gt;b. /bash&lt;br/&gt;c. /etc/profile&lt;br/&gt;d. ~/bash&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# You have created a subdirectory of your home directory containing your scripts. Since you use the bash shell, what file would you edit to put this directory on your path? Choose one: &lt;/strong&gt;&lt;br/&gt;a. ~/.profile&lt;br/&gt;b. /etc/profile&lt;br/&gt;c. /etc/bash&lt;br/&gt;d. ~/.bash&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# Which of the following interprets your actions when typing at the command line for the operating system? Choose One &lt;/strong&gt;&lt;br/&gt;a. Utility&lt;br/&gt;b. Application&lt;br/&gt;c. Shell&lt;br/&gt;d. Command&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# What can you type at a command line to determine which shell you are using?&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# You want to enter a series of commands from the command-line. What would be the quickest way to do this? Choose One &lt;/strong&gt;&lt;br/&gt;a. Press enter after entering each command and its arguments&lt;br/&gt;b. Put them in a script and execute the script&lt;br/&gt;c. Separate each command with a semi-colon (;) and press enter after the last command&lt;br/&gt;d. Separate each command with a / and press enter after the last command&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# You are entering a long, complex command line and you reach the right side of your screen before you have finished typing. You want to finish typing the necessary commands but have the display wrap around to the left. Which of the following key combinations would achieve this? Choose One &lt;/strong&gt;&lt;br/&gt;a. Esc, /, Enter&lt;br/&gt;b. /, Enter&lt;br/&gt;c. ctrl-d, enter&lt;br/&gt;d. esc, /, ctrl-d&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# After typing in a new command and pressing enter, you receive an error message indicating incorrect syntax. This error message originated from.. Choose one &lt;/strong&gt;&lt;br/&gt;a. The shell&lt;br/&gt;b. The operating system&lt;br/&gt;c. The command&lt;br/&gt;d. The kernel</content><link rel='replies' type='application/atom+xml' href='http://linuxmaza.blogspot.com/feeds/7025995056568549341/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxmaza.blogspot.com/2010/03/top-linux-admin-interview-questions_05.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3321470074006259731/posts/default/7025995056568549341'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3321470074006259731/posts/default/7025995056568549341'/><link rel='alternate' type='text/html' href='http://linuxmaza.blogspot.com/2010/03/top-linux-admin-interview-questions_05.html' title='Top Linux Admin Interview Questions asked in TOP IT industries :&#xa;Question Bank 2'/><author><name>Ashwin</name><uri>http://www.blogger.com/profile/09991847790833662522</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3321470074006259731.post-1989954426419596660</id><published>2010-03-05T06:54:00.000-08:00</published><updated>2010-07-18T23:35:42.815-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux Interviews FAQ"/><title type='text'>Top Linux Admin Interview Questions asked in TOP IT industries</title><content type='html'>Hey Guys, AFRAID of interviews&lt;br/&gt;&lt;br/&gt;DONT Worry prepare the following questions before Interview. I have managed to prepare some questions sets. Practice this and i&#39;m sure you would crack a L1/L2/L3 Linux Administrator Job Easily. All the questions are taken from the top IT brands interviews.&lt;br/&gt;&lt;br/&gt;Linux Admin Interview Questions and Answers, Linux Administration questions, Linux Networking questions, MYSQL questions, bash, postfix questions, sendmail questions, ftp server questions&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Questions BANK 01&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# You attempt to use shadow passwords but are unsuccessful. What characteristic of the /etc/passwd file may cause this? Choose one: &lt;/strong&gt;&lt;br/&gt;a. The login command is missing.&lt;br/&gt;b. The username is too long.&lt;br/&gt;c. The password field is blank.&lt;br/&gt;d. The password field is prefaced by an asterick.&lt;br/&gt;&lt;br/&gt;#&lt;strong&gt; You create a new user account by adding the following line to your /etc/passwd file. bobm:baddog:501:501:Bob Morris:/home/bobm:/bin/bash Bob calls you and tells you that he cannot logon. You verify that he is using the correct username and password. What is the problem? Choose one: &lt;/strong&gt;&lt;br/&gt;a. The UID and GID cannot be identical.&lt;br/&gt;b. You cannot have spaces in the line unless they are surrounded with double quotes.&lt;br/&gt;c. You cannot directly enter the password; rather you have to use the passwd command to assign a password to the user.&lt;br/&gt;d. The username is too short, it must be at least six characters long.&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# Which of the following tasks is not necessary when creating a new user by editing the /etc/passwd file? Choose one:&lt;br/&gt;a. Create a link from the user’s home directory to the shell the user will use. &lt;/strong&gt;&lt;br/&gt;b. Create the user’s home directory&lt;br/&gt;c. Use the passwd command to assign a password to the account.&lt;br/&gt;d. Add the user to the specified group.&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# You create a new user by adding the following line to the /etc/passwd file bobm::501:501:Bob Morris:/home/bobm:/bin/bash You then create the user’s home directory and use the passwd command to set his password. However, the user calls you and says that he cannot log on. What is the problem? Choose one: &lt;/strong&gt;&lt;br/&gt;a. The user did not change his password.&lt;br/&gt;b. bobm does not have permission to /home/bobm.&lt;br/&gt;c. The user did not type his username in all caps.&lt;br/&gt;d. You cannot leave the password field blank when creating a new user.&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# When using useradd to create a new user account, which of the following tasks is not done automatically. Choose one:&lt;br/&gt;&lt;/strong&gt;a. Assign a UID.&lt;br/&gt;b. Assign a default shell.&lt;br/&gt;c. Create the user’s home directory.&lt;br/&gt;d. Define the user’s home directory.&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# You issue the following command useradd -m bobm But the user cannot logon. What is the problem? Choose one: &lt;/strong&gt;&lt;br/&gt;a. You need to assign a password to bobm’s account using the passwd command.&lt;br/&gt;b. You need to create bobm’s home directory and set the appropriate permissions.&lt;br/&gt;c. You need to edit the /etc/passwd file and assign a shell for bobm’s account.&lt;br/&gt;d. The username must be at least five characters long.&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# You have created special configuration files that you want copied to each user’s home directories when creating new user accounts. You copy the files to /etc/skel. Which of the following commands will make this happen? Choose one: &lt;/strong&gt;&lt;br/&gt;a. useradd -m username&lt;br/&gt;b. useradd -mk username&lt;br/&gt;c. useradd -k username&lt;br/&gt;d. useradd -Dk username&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# Mary has recently gotten married and wants to change her username from mstone to mknight. Which of the following commands should you run to accomplish this? Choose one: &lt;/strong&gt;&lt;br/&gt;a. usermod -l mknight mstone&lt;br/&gt;b. usermod -l mstone mknight&lt;br/&gt;c. usermod -u mknight mstone&lt;br/&gt;d. usermod -u mstone mknight&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# After bob leaves the company you issue the command userdel bob. Although his entry in the /etc/passwd file has been deleted, his home directory is still there. What command could you have used to make sure that his home directory was also deleted? Choose one: &lt;/strong&gt;&lt;br/&gt;a. userdel -m bob&lt;br/&gt;b. userdel -u bob&lt;br/&gt;c. userdel -l bob&lt;br/&gt;d. userdel -r bob&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# All groups are defined in the /etc/group file. Each entry contains four fields in the following order. Choose one: &lt;/strong&gt;&lt;br/&gt;a. groupname, password, GID, member list&lt;br/&gt;b. GID, groupname, password, member list&lt;br/&gt;c. groupname, GID, password, member list&lt;br/&gt;d. GID, member list, groupname, password&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;# You need to create a new group called sales with Bob, Mary and Joe as members. Which of the following would accomplish this? Choose one: &lt;/strong&gt;&lt;br/&gt;a. Add the following line to the /etc/group file: sales:44:bob,mary,joe&lt;br/&gt;b. Issue the command groupadd sales.&lt;br/&gt;c. Issue the command groupadd -a sales bob,mary,joe&lt;br/&gt;d. Add the following line to the /etc/group file: sales::44:bob,mary,joe&lt;br/&gt;&lt;div id=&quot;_mcePaste&quot; style=&quot;overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;&quot;&gt;Linux Admin Interview Questions and Answers, Linux Administration questions, Linux Networking questions, MYSQL questions, bash, postfix questions, sendmail questions, ftp server questions&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxmaza.blogspot.com/feeds/1989954426419596660/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxmaza.blogspot.com/2010/03/top-linux-admin-interview-questions.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3321470074006259731/posts/default/1989954426419596660'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3321470074006259731/posts/default/1989954426419596660'/><link rel='alternate' type='text/html' href='http://linuxmaza.blogspot.com/2010/03/top-linux-admin-interview-questions.html' title='Top Linux Admin Interview Questions asked in TOP IT industries'/><author><name>Ashwin</name><uri>http://www.blogger.com/profile/09991847790833662522</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry></feed>