<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Linux Explore &#187; linuxexplore</title>
	<atom:link href="https://blog.linuxexplore.com/author/linuxexplore/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.linuxexplore.com</link>
	<description>Exploring Linux</description>
	<lastBuildDate>Mon, 07 Apr 2014 00:30:50 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.0.38</generator>
	<item>
		<title>3 Easy Tricks for Beginners to Learn Linux Commands</title>
		<link>https://blog.linuxexplore.com/2014/04/07/3-simple-tricks-for-beginners-to-learn-linux-commands/</link>
		<comments>https://blog.linuxexplore.com/2014/04/07/3-simple-tricks-for-beginners-to-learn-linux-commands/#comments</comments>
		<pubDate>Mon, 07 Apr 2014 00:30:50 +0000</pubDate>
		<dc:creator><![CDATA[linuxexplore]]></dc:creator>
				<category><![CDATA[Linux Explore Tips & Tricks]]></category>
		<category><![CDATA[apropos]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[Linux command]]></category>
		<category><![CDATA[Linux help]]></category>
		<category><![CDATA[Linux terminal]]></category>
		<category><![CDATA[Linux Tricks]]></category>
		<category><![CDATA[man]]></category>
		<category><![CDATA[man page]]></category>

		<guid isPermaLink="false">http://linuxexplore.com/?p=865</guid>
		<description><![CDATA[If you are a Beginner in Linux, this post will help you to learn Linux commands in just 3 simple steps. Nowadays most of the Linux flavored desktop like Ubuntu, Mint, Fedora, Suse etc. are coming with very interactive user friendly graphical user interface (GUI). Using Linux GUI is similar to use other graphical user&#8230;]]></description>
				<content:encoded><![CDATA[<p>If you are a Beginner in Linux, this post will help you to learn Linux commands in just 3 simple steps.</p>
<p>Nowadays most of the Linux flavored desktop like Ubuntu, Mint, Fedora, Suse etc. are coming with very interactive user friendly graphical user interface (GUI). Using Linux GUI is similar to use other graphical user interface OS like Windows XP/7/8, Mac OS, Android or iOS etc.</p>
<p>Although Linux is coming with user friendly GUI but it is also providing a very strong command interface called command line interface (CLI) terminal similar to dos command interface in Windows. Similar to dos, this CLI is also not user friendly. But Linux terminal commands are important to learn as it is the base of this OS and if you learn this you can do almost anything in your system using terminal application (don’t take it so seriously, it will not cook food for you ;-) but definitely it will do).</p>
<p>So here is my first trick.</p>
<h2>Use <em>“apropos”</em> to find your command</h2>
<p>Any newbie when first open the Linux terminal, they can get confused because they don’t know what to do. But actually they know what to do but don’t know how to do that. So here is my first trick when you open Linux terminal. Don’t think too much, your first command is “apropos”. Using apropos command you can find all the command to do anything. For example, if you want to download a file using command, give command</p>
<p><code>apropos “download”</code></p>
<p>It will show you the list of all the commands, with their initial help, to download a file.</p>
<p><a href="http://linuxexplore.com/?attachment_id=871#main"><img class="aligncenter wp-image-871 size-large" src="http://linuxexplore.files.wordpress.com/2014/04/apropos1-900x600.png?w=700" alt="apropos" width="700" height="466" /></a>Now you try finding your command to download a file which is “wget”. wget command can be used as follows:</p>
<p><code>wget </code></p>
<p>But how will you know that <em>&#8220;wget&#8221;</em> or any other command can be used like this.</p>
<p>So here is my second tip.</p>
<h2>Use <a title="Linux Manual Pages" href="http://man.linuxexplore.com" target="_blank"><em>“man”</em> command</a> for command manual page</h2>
<p>It is very important to know about that <a title="Linux Manual Pages" href="http://man.linuxexplore.com" target="_blank">how can you get the help of any Linux command</a>. You can use any Linux command with care, if you will find its help. So after you know, which command can be used to do your task, check its manual page by <em>“man”</em> command. <a title="Linux Manual Pages" href="http://man.linuxexplore.com" target="_blank">Linux Manual pages</a> show the syntax and the detail description of the options of the command.</p>
<p><code>man &lt;command&gt;</code></p>
<p><a href="http://man.linuxexplore.com"><img class="aligncenter size-large wp-image-873" src="http://linuxexplore.files.wordpress.com/2014/04/man1-900x600.png?w=700" alt="man" width="700" height="466" /></a>Other than manual page of any Linux commands, a simple help is also there. So my third tip is about that.</p>
<h2>Use <em>“-h”</em> or <em>&#8220;&#8211;help&#8221;</em> argument for command help</h2>
<p>Most of the Linux commands have its help. Other than manual page, this help is also useful to learn the command syntax and options. Sometimes only this help is enough to execute a command but better look for its manual page to get detailed help.</p>
<p><code>wget -h</code></p>
<p>or</p>
<p><code>wget --help</code></p>
<h2><a href="http://man.linuxexplore.com"><img class="aligncenter size-large wp-image-872" src="http://linuxexplore.files.wordpress.com/2014/04/help1-900x600.png?w=700" alt="help" width="700" height="466" /></a>Conclusion</h2>
<p>After learning above three tips, you can find any required command and its manual or help. So, start finding and using Linux command line terminal.</p>
<p>Please feel free to contact me if you still need any help in using Linux.</p>
<h3>Related Page:</h3>
<p><a title="Linux Manual Pages" href="http://man.linuxexplore.com" target="_blank">Linux Commands Man Pages</a></p>
]]></content:encoded>
			<wfw:commentRss>https://blog.linuxexplore.com/2014/04/07/3-simple-tricks-for-beginners-to-learn-linux-commands/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Use of subsystem lock files in init script</title>
		<link>https://blog.linuxexplore.com/2014/03/19/use-of-subsystem-lock-files-in-init-script/</link>
		<comments>https://blog.linuxexplore.com/2014/03/19/use-of-subsystem-lock-files-in-init-script/#comments</comments>
		<pubDate>Wed, 19 Mar 2014 17:51:43 +0000</pubDate>
		<dc:creator><![CDATA[linuxexplore]]></dc:creator>
				<category><![CDATA[Linux Explore Tips & Tricks]]></category>
		<category><![CDATA[/var/lock/subsys]]></category>
		<category><![CDATA[init script]]></category>
		<category><![CDATA[lock]]></category>
		<category><![CDATA[service]]></category>
		<category><![CDATA[shutdown process]]></category>
		<category><![CDATA[startup process]]></category>
		<category><![CDATA[subsys]]></category>
		<category><![CDATA[subsystem]]></category>

		<guid isPermaLink="false">http://linuxexplore.com/?p=843</guid>
		<description><![CDATA[In /var/lock/subsys/ directory, there are various files like network, iptables, ip6tables, sshd, rsyslog etc. all these files are the lock files created by their init scripts. Most of these files may be empty. These files play the important role in Linux startup and shutdown process. When a service is started through an init script, a&#8230;]]></description>
				<content:encoded><![CDATA[<p>In <strong>/var/lock/subsys/</strong> directory, there are various files like network, iptables, ip6tables, sshd, rsyslog etc. all these files are the <strong>lock files </strong>created by their <strong>init scripts</strong>. Most of these files may be empty.</p>
<p><a href="http://linuxexplore.files.wordpress.com/2014/03/screenshot-subsys.png"><img class="aligncenter size-large wp-image-845" alt="subsys" src="http://linuxexplore.files.wordpress.com/2014/03/screenshot-subsys.png?w=700" width="700" height="294" /></a>These files play the important role in <strong>Linux startup and shutdown process</strong>. When a <strong>service</strong> is started through an init script, a file is touched in the <strong>/var/lock/subsys/</strong> directory with the same name as the init script. This lock file helps in various manners like:</p>
<ul>
<li>This file represents that the service should be running or <strong>subsystem locked</strong>.</li>
<li>It helps to avoid another instance of a service, if it accidentally started again.</li>
<li>It is mandatory to create, if service need to be stopped in shutdown.</li>
</ul>
<p>When the service is stopped, this file is removed.</p>
<p>However only lock file is not enough to know that the service is running or not. Status of a running service can be captured by using <strong><em>status</em> function</strong> defined in <strong>/etc/rc.d/init.d/functions</strong>. Following command in an init script show the status of the service (if status case created in init script):</p>
<pre><strong>service &lt;servicename&gt; status</strong></pre>
<p>It <strong>checks both PID and the lock file</strong> of the service. If PID is not found but the lock file exists, you will get following message:</p>
<pre><strong> dead but subsys locked</strong></pre>
<p>It is not always mandatory to create lock file, the services can be started and stopped without it. But it can create problem during shutdown and <strong>RUNLEVEL switch</strong>. So follow the recommended steps (recommended by me) to write a <strong>good init script </strong>(also drafting a tutorial for writing init script):</p>
<ul>
<li>In start section of init script <strong>touch the lock file</strong> after starting the service. You can use touch at the end of start case.</li>
</ul>
<pre style="padding-left:60px;"><strong>touch /var/lock/subsys/</strong></pre>
<ul>
<li>Don’t forget to check the lock file before starting the service in start case to <strong>avoid the multiple session of same service</strong>.</li>
</ul>
<pre style="padding-left:60px;"><strong>if [ ! -f /var/lock/subsys/ ]; then
     start # start service here
fi</strong></pre>
<ul>
<li>Don’t forget to <strong>remove the lock in stop case</strong>, it can also be added at the end of stop case.</li>
</ul>
<pre style="padding-left:60px;"><strong>rm -f /var/lock/subsys/<strong>&lt;servicename&gt;</strong></strong></pre>
<p>In case system goes power down, lock files remain exist in the system due to non-execution of stop case. It does not tend it to failure as we added a check of existence of lock file in start case. , But the PID of those services will not found that means service is <strong>staled</strong>. During startup process, init checks if PID of a service exist or not. It realize a <strong>stale lock file</strong>, and clean itself up, which allow the init script to start the service successfully.</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.linuxexplore.com/2014/03/19/use-of-subsystem-lock-files-in-init-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS 6 CD/DVD/ISO to USB Installation</title>
		<link>https://blog.linuxexplore.com/2014/03/17/centos-6-cd-dvd-iso-to-usb-installation/</link>
		<comments>https://blog.linuxexplore.com/2014/03/17/centos-6-cd-dvd-iso-to-usb-installation/#comments</comments>
		<pubDate>Mon, 17 Mar 2014 18:01:41 +0000</pubDate>
		<dc:creator><![CDATA[linuxexplore]]></dc:creator>
				<category><![CDATA[Linux Explore Tips & Tricks]]></category>
		<category><![CDATA[Bootable USB]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[centos 6]]></category>
		<category><![CDATA[iso2usb]]></category>
		<category><![CDATA[isotousb]]></category>
		<category><![CDATA[liveusb-creater]]></category>
		<category><![CDATA[pendrive Linux]]></category>
		<category><![CDATA[UNetbootin]]></category>
		<category><![CDATA[Universal-USB-Installer]]></category>
		<category><![CDATA[USB software]]></category>

		<guid isPermaLink="false">http://linuxexplore.com/?p=828</guid>
		<description><![CDATA[I tried various Linux ISO to USB software like UNetbootin, liveusb-creator, Universal-USB-Installer etc to create CentOS 6 (take a look at new look of CentOS website) bootable USB/pendrive. But all have some problems or limitations which force me to use ISO2USB software, which help me to meet my need. Requirement Create a CentOS 6 bootable&#8230;]]></description>
				<content:encoded><![CDATA[<p>I tried various Linux ISO to USB software like <a title="UNebootin" href="http://unetbootin.sourceforge.net/" target="_blank"><strong>UNetbootin</strong></a>, <a title="liveusb-creator" href="https://fedorahosted.org/liveusb-creator/" target="_blank"><strong>liveusb-creator</strong></a>, <a title="Universal-USB-Installer" href="http://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/" target="_blank"><strong>Universal-USB-Installer</strong></a> etc to create CentOS 6 (take a look at new look of <a title="CentOS" href="http://www.centos.org/" target="_blank">CentOS website</a>) bootable <strong>USB</strong>/<strong>pendrive</strong>. But all have some problems or limitations which force me to use <a title="ISO2USB" href="http://iso2usb.sourceforge.net/" target="_blank"><strong>ISO2USB</strong></a> software, which help me to meet my need.</p>
<h3>Requirement</h3>
<p>Create a CentOS 6 bootable USB which will support customized installation (by using kickstart configuration file).</p>
<h3>Limitations with other software</h3>
<p><strong>UNetbootin</strong>: Bootable USB of CentOS 6 created by UNetbootin is not even booting the system using USB and not support kickstart configuration file.</p>
<p><strong>liveusb-creator</strong>: It support live Linux Fedora OS only like fedora-live and not support kickstart configuration file.</p>
<p><strong>Universal-USB-Installer</strong>: It successfully boot the CentOS 6 from USB but failed to install by kickstart configuration file.</p>
<h3>Prerequisites of ISO2USB software</h3>
<p>This is the minimum requirement for all ISO to USB software. It need followings:</p>
<ul>
<li>ISO file or CD/DVD of CentOS 6 (Custom Installation disk of CentOS 6).</li>
<li>A USB drive to boot the system.</li>
</ul>
<h3>Prepare CentOS 6 bootable from ISO file or CD/DVD</h3>
<p>After <strong><a title="Download ISO2USB Software" href="https://sourceforge.net/projects/iso2usb/files/latest/download" target="_blank">downloading ISO2USB software</a></strong> for Windows, follow the steps given below:</p>
<ul>
<li>Plug the USB drive to Windows XP/Vista/7 machine.</li>
<li>Execute the ISO2USB software.</li>
</ul>
<p style="text-align:center;"><img class="aligncenter size-full wp-image-829" alt="ISO2USB Software" src="http://linuxexplore.files.wordpress.com/2014/03/iso2usb-1.png" width="540" height="448" /><em>ISO2USB Software</em></p>
<ul>
<li>Browse CentOS 6 ISO (with custom installation) file by using the highlighted browse button.</li>
</ul>
<p style="text-align:center;"><img class="aligncenter size-full wp-image-830" alt="Browse Custom CentOS-6 ISO file" src="http://linuxexplore.files.wordpress.com/2014/03/iso2usb-2.png" width="540" height="448" /><em>Browse Custom CentOS-6 ISO file</em></p>
<ul>
<li>Click on OK button but before clicking on OK button; just make sure that correct USB drive should be selected.</li>
</ul>
<p style="text-align:center;"><img class="aligncenter size-full wp-image-831" alt="Select USB drive" src="http://linuxexplore.files.wordpress.com/2014/03/iso2usb-3.png" width="540" height="448" /><em>Select USB drive</em></p>
<ul>
<li>Click Exit button, when finished.</li>
</ul>
<p style="text-align:center;"><img class="aligncenter size-full wp-image-832" alt="Exit ISO2USB" src="http://linuxexplore.files.wordpress.com/2014/03/iso2usb-4.png" width="540" height="448" /><em>Exit ISO2USB</em></p>
<ul>
<li>Safely remove USB drive from Windows XP/Vista/7 system.</li>
</ul>
<p>USB drive is now ready to install CentOS 6 (with custom configuration file) on your system.</p>
<p><!--[if gte mso 9]&gt;--></p>
]]></content:encoded>
			<wfw:commentRss>https://blog.linuxexplore.com/2014/03/17/centos-6-cd-dvd-iso-to-usb-installation/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>2013 in review, welcome 2014</title>
		<link>https://blog.linuxexplore.com/2014/03/16/2013-in-review-welcome-2014/</link>
		<comments>https://blog.linuxexplore.com/2014/03/16/2013-in-review-welcome-2014/#comments</comments>
		<pubDate>Sun, 16 Mar 2014 17:30:47 +0000</pubDate>
		<dc:creator><![CDATA[linuxexplore]]></dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[annual report]]></category>
		<category><![CDATA[Indian visitors]]></category>
		<category><![CDATA[Madison Square Garden]]></category>
		<category><![CDATA[stats helper monkeys]]></category>

		<guid isPermaLink="false">http://linuxexplore.com/?p=818</guid>
		<description><![CDATA[I got most visitors from U.S., thanks to my U.S. visitors. After that Indian visitors make a good figure, special thanks to them also. I am expecting more visits from them. The WordPress.com stats helper monkeys prepared a 2013 annual report for this blog. Here&#8217;s an excerpt: Madison Square Garden can seat 20,000 people for&#8230;]]></description>
				<content:encoded><![CDATA[<p>I got most visitors from U.S., thanks to my U.S. visitors. After that Indian visitors make a good figure, special thanks to them also. I am expecting more visits from them.</p>
<p>The WordPress.com stats helper monkeys prepared a 2013 annual report for this blog.</p>
<p><a href="http://linuxexplore.com/2013/annual-report/"><img alt="" src="http://www.wordpress.com/wp-content/mu-plugins/annual-reports/img/2012-emailteaser.png" width="100%" /></a></p>
<p>Here&#8217;s an excerpt:</p>
<blockquote><p>Madison Square Garden can seat 20,000 people for a concert. This blog was viewed about <strong>68,000</strong> times in 2013. If it were a concert at Madison Square Garden, it would take about 3 sold-out performances for that many people to see it.</p></blockquote>
<p><a href="http://linuxexplore.com/2013/annual-report/">Click here to see the complete report.</a></p>
]]></content:encoded>
			<wfw:commentRss>https://blog.linuxexplore.com/2014/03/16/2013-in-review-welcome-2014/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Free Sign Up / Sign In to LinuxExplore</title>
		<link>https://blog.linuxexplore.com/2013/07/07/sign-up-sign-in-to-linuxexplore/</link>
		<comments>https://blog.linuxexplore.com/2013/07/07/sign-up-sign-in-to-linuxexplore/#comments</comments>
		<pubDate>Sun, 07 Jul 2013 13:38:45 +0000</pubDate>
		<dc:creator><![CDATA[linuxexplore]]></dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[free email]]></category>
		<category><![CDATA[linuxexplore]]></category>
		<category><![CDATA[live chat]]></category>
		<category><![CDATA[live mail]]></category>
		<category><![CDATA[photos]]></category>
		<category><![CDATA[sign up]]></category>
		<category><![CDATA[skydrive]]></category>
		<category><![CDATA[windows live domain]]></category>

		<guid isPermaLink="false">http://linuxexplore.com/?p=778</guid>
		<description><![CDATA[Linux explore starts providing free account by integrating Windows live service. Create accounts at Linux Explore and enjoy the latest email, chat, manage tasks, events, birthdays using enhanced calendar service. Preserve your photos, files etc to skydrive using linuxexplore account. Lot of other benefits, so Sign Up and start exploring your free services. Click following Sign&#8230;]]></description>
				<content:encoded><![CDATA[<p>Linux explore starts providing free account by integrating Windows live service. Create accounts at Linux Explore and enjoy the latest email, chat, manage tasks, events, birthdays using enhanced calendar service. Preserve your photos, files etc to skydrive using linuxexplore account. Lot of other benefits, so Sign Up and start exploring your free services.</p>
<p>Click following <strong>Sign up</strong> button to create your free account and <strong>Sign in</strong> if you already created your free account.</p>
<p>Cheers&#8230;&#8230;</p>
<div>
<div style="position:relative;width:495px;height:235px;background-image:url('http://linuxexplore.files.wordpress.com/2013/07/linux-explore-header-497x239.png');overflow:hidden;">
<div style="height:100%;width:100%;overflow:hidden;">
<table style="table-layout:fixed;word-wrap:break-word;" width="302" border="0px" cellspacing="0px" cellpadding="5px" align="left">
<tbody>
<tr>
<td style="color:#ffffff;font:16px Arial;" align="center" valign="middle" width="240px" height="50px">
<h3><span style="color:#000000;">Get a free account @linuxexplore.com</span></h3>
</td>
</tr>
</tbody>
</table>
</div>
<div style="position:absolute;border:1px solid #ffffff;width:90px;right:15px;top:5px;">
<div style="border:1px solid #1F59A5;">
<div style="border:1px solid #ffffff;background-image:url('http://domains.live.com/OpenSignupImages/OpenButtonBackground.gif');padding:1px 0;margin:0;text-align:center;"><a style="font:bold 12px Arial, Helvetica, sans-serif;color:#092076;text-decoration:none;" href="https://domains.live.com/members/signup.aspx?domain=linuxexplore.com" target="_blank">Sign up</a></div>
</div>
</div>
<div style="position:absolute;border:1px solid #ffffff;width:90px;right:15px;top:40px;">
<div style="border:1px solid #1F59A5;">
<div style="border:1px solid #ffffff;background-image:url('http://domains.live.com/OpenSignupImages/OpenButtonBackground.gif');padding:1px 0;margin:0;text-align:center;"><a style="font:bold 12px Arial, Helvetica, sans-serif;color:#092076;text-decoration:none;" href="http://webmail.linuxexplore.com" target="_blank">Sign in</a></div>
</div>
</div>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>https://blog.linuxexplore.com/2013/07/07/sign-up-sign-in-to-linuxexplore/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IPSec Communication  for VPN Setup in CentOS 6 / RHEL 6.3</title>
		<link>https://blog.linuxexplore.com/2013/04/07/ipsec-communication-for-vpn-setup-in-centos-6-rhel-6-3/</link>
		<comments>https://blog.linuxexplore.com/2013/04/07/ipsec-communication-for-vpn-setup-in-centos-6-rhel-6-3/#comments</comments>
		<pubDate>Sat, 06 Apr 2013 19:21:09 +0000</pubDate>
		<dc:creator><![CDATA[linuxexplore]]></dc:creator>
				<category><![CDATA[Linux Explore How to]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[IPSec]]></category>
		<category><![CDATA[IPSec VPN]]></category>
		<category><![CDATA[ipsec-tools]]></category>
		<category><![CDATA[L2TP VPN]]></category>
		<category><![CDATA[Linux Security]]></category>
		<category><![CDATA[PSK]]></category>
		<category><![CDATA[racoon]]></category>
		<category><![CDATA[VPN]]></category>

		<guid isPermaLink="false">http://linuxexplore.com/?p=724</guid>
		<description><![CDATA[The use of IPSEC transport mode for server to server communication is one of the best solutions to provide authentication, integrity, access control, and confidentiality. IPSEC is built into to the Linux kernel, in other words there is no daemon running in the background. IPSEC does not require port-forwarding; some people elect to use SSH,&#8230;]]></description>
				<content:encoded><![CDATA[<p>The use of <strong>IPSEC</strong> transport mode for server to server communication is one of the best solutions to provide authentication, integrity, access control, and confidentiality. IPSEC is built into to the Linux kernel, in other words there is no daemon running in the background. IPSEC does not require port-forwarding; some people elect to use SSH, stunnel, and other technologies that rely on port forwarding. With IPSEC, you simply have to run a program and its configuration file. After running it, encryption between hosts is mandatory. Connections will be denied if the other connection does not have the appropriate keys. Groups of computers can share the same key, and it can even be done on a per-port setting.</p>
<p><a href="http://linuxexplore.files.wordpress.com/2013/04/n-t-n-ipsec-diagram.png"><img class="aligncenter size-full wp-image-759" alt="IPSec image" src="http://linuxexplore.files.wordpress.com/2013/04/n-t-n-ipsec-diagram.png" width="600" height="186" /></a></p>
<p>To configure the IPSec between servers following are the requirements:</p>
<ul>
<li>IPSec-tools package</li>
<li>Static IP address for each system</li>
</ul>
<p>IPSec-tools can be downloaded from <a href="http://ipsec-tools.sourceforge.net/">http://ipsec-tools.sourceforge.net/</a>.</p>
<h2>Installation IPSec-tools package:</h2>
<p>To install give the following commands:</p>
<pre># <strong>tar jxf ipsec-tools-x.y.z.tar.bz2
</strong># <strong>cd ipsec-tools-x.y.z
</strong># <strong>./configure
</strong># <strong>make
</strong># <strong>make install</strong></pre>
<p>If you get error in compilation, please go through the comments. You will find the solution.</p>
<p>Replace <em>x.y.z</em> with the version of the downloaded sources.</p>
<p>Instead of compiling and installing IPSec-tools from source, it can be done using CentOS repository:</p>
<pre># <strong>yum install ipsec-tools
</strong></pre>
<p><!--[if gte mso 9]&gt;--></p>
<h2>IPSec communication between two Linux systems</h2>
<h3><span style="text-decoration:underline;">Using Pre-shared key authentication method:</span></h3>
<p>Linux to <strong>Linux IPSec communication</strong> can be used to secure the communication between Server (IP address: 192.168.1.1) to Server (IP address: 192.168.1.2). It can also be used to encrypt the <strong>client-sever communication. </strong>For example: L2TP VPN Server and client communication, VNC server and client communication can be secured using ipsec-tools. For both cases following steps need to be followed.</p>
<p>The first step is to write a configuration file <code>/etc/raccoon/setkey.conf </code>with following entries on 192.168.1.1.</p>
<pre>#!/usr/sbin/setkey -f
# Flush the SAD and SPD
flush;
spdflush;
spdadd 192.168.1.1 192.168.1.2 any -P out ipsec
        esp/transport//require;
spdadd 192.168.1.2 192.168.1.1 any -P in ipsec
        esp/transport//require;</pre>
<p>The same <code>/etc/setkey.conf</code> can be created on the 192.168.1.2 host, with inverted <code><i>-P in</i></code> and <code><i>-P out</i></code> options.</p>
<pre>#!/usr/sbin/setkey -f
# Flush the SAD and SPD
flush;
spdflush;
spdadd 192.168.1.1 192.168.1.2 any -P in ipsec
        esp/transport//require;
spdadd 192.168.1.2 192.168.1.1 any -P out ipsec
        esp/transport//require;</pre>
<p>With the security policies set up you can configure <strong>racoon</strong>. We will add paths for the preshared key file, and certification directory. This is an example of <code>/etc/racoon.conf</code> with the paths and a general phase two policy set up:</p>
<pre>path pre_shared_key "/etc/racoon/psk.txt";
path certificate "/etc/racoon/certs";
sainfo anonymous {
{
        pfs_group 2;
        lifetime time 1 hour;
        encryption_algorithm 3des, blowfish 448, rijndael;
        authentication_algorithm hmac_sha1, hmac_md5;
        compression_algorithm deflate;
}</pre>
<p>The <code><i>sainfo</i></code> identifier is used to make a block that specifies the settings for security associations. Instead of setting this for a specific host, the <code><i>anonymous</i></code> parameter is used to specify that these settings should be used for all hosts that do not have a specific configuration. The <code><i>pfs_group</i></code> specifies which group of Diffie-Hellman exponentiations should be used. The different groups provide different lengths of base prime numbers that are used for the authentication process. Group 2 provides a 1024 bit length if you would like to use a greater length, for increased security, you can use another group (like 14 for a 2048 bit length). The <code><i>encryption_algorithm</i></code> specifies which encryption algorithms this host is willing to use for ESP encryption. The <code><i>authentication_algorithm</i></code> specifies the algorithm to be used for ESP Authentication or AH. Finally, the <code><i>compression_algorithm</i></code> is used to specify which compression algorithm should be used when IPcomp is specified in an association.</p>
<p>The next step is to add a phase one configuration for the key exchange with the other host to the <code>racoon.conf</code> configuration file.</p>
<pre>remote 192.168.1.2
{
        exchange_mode aggressive, main;
        my_identifier address;
        proposal {
               encryption_algorithm 3des;
               hash_algorithm sha1;
               authentication_method pre_shared_key;
               dh_group 2;
        }
}</pre>
<p>The <code><i>remote</i></code> block specifies a phase one configuration. The <code><i>exchange_mode</i></code> is used to configure what exchange mode should be used for phase. You can specify more than one exchange mode, but the first method is used if this host is the initiator of the key exchange. The <code><i>my_identifier</i></code> option specifies what identifier should be sent to the remote host. If this option committed <code><i>address</i></code> is used, this sends the IP address as the identifier. The <code><i>proposal</i></code> block specifies parameter that will be proposed to the other host during phase one authentication. The <code><i>encryption_algorithm</i></code>, and <code><i>dh_group</i></code> are explained above. The <code><i>hash_algorithm</i></code> option is mandatory, and configures the hash algorithm that should be used. This can be <code><i>md5</i></code>, or <code><i>sha1</i></code>. The <code><i>authentication_method</i></code> is crucial for this configuration, as this parameter is used to specify that a preshared key should be used, with <code><i>pre_shared_key</i></code>.</p>
<p>With racoon set up there is one thing left to do, the preshared key has to be added to <code>/etc/racoon/psk.txt</code>. The syntax is very simple, each line contains a host IP address and a key. These parameters are separated with a tab. For example:</p>
<pre>192.168.1.2    somekey</pre>
<p>Now time to test the security policies &amp; raccoon configuration.</p>
<pre>$ <strong>setkey -f /etc/setkey.conf</strong>
$ <strong>racoon -F</strong></pre>
<p>For instance, you could ping the other host to start with. The first time you ping the other host, this will fail:</p>
<pre>$ <strong>ping 192.168.1.2</strong>
connect: Resource temporarily unavailable</pre>
<p>But after some time you will get reply. Now all the communication between IP addresses 192.168.1.1 and 192.168.1.2 is secured with IPSec. Instead of making complete secure communication, it can be changed port specific, which can be used for <strong>client-server secure communication</strong>. It just need to modify /etc/setkey.conf file for port specific configuration.</p>
<p>Check related posts: <a href="http://linuxexplore.com/how-tos/l2tp-vpn-using-rp-l2tpd/" target="_blank">how to configure L2TP VPN on CentOS using rp-l2tpd</a> and <a href="http://linuxexplore.com/how-tos/l2tp-vpn-using-xl2tpd/" target="_blank">how to configure L2TP VPN on CentOS using xl2tpd</a></p>
]]></content:encoded>
			<wfw:commentRss>https://blog.linuxexplore.com/2013/04/07/ipsec-communication-for-vpn-setup-in-centos-6-rhel-6-3/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Chroot SFTP Users for Web Hosting Server.</title>
		<link>https://blog.linuxexplore.com/2013/02/20/chroot-sftp-users-for-web-hosting-server/</link>
		<comments>https://blog.linuxexplore.com/2013/02/20/chroot-sftp-users-for-web-hosting-server/#comments</comments>
		<pubDate>Tue, 19 Feb 2013 20:37:25 +0000</pubDate>
		<dc:creator><![CDATA[linuxexplore]]></dc:creator>
				<category><![CDATA[Linux Explore How to]]></category>
		<category><![CDATA[centos 6]]></category>
		<category><![CDATA[chroot]]></category>
		<category><![CDATA[chroot jail]]></category>
		<category><![CDATA[chroot sftp]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[internal-sftp]]></category>
		<category><![CDATA[kernel version]]></category>
		<category><![CDATA[Linux Security]]></category>
		<category><![CDATA[openssh]]></category>
		<category><![CDATA[openssh-server]]></category>
		<category><![CDATA[openssh-server-5.3]]></category>
		<category><![CDATA[public_html]]></category>
		<category><![CDATA[restorecon]]></category>
		<category><![CDATA[selinux chroot]]></category>
		<category><![CDATA[setsebool]]></category>
		<category><![CDATA[SFTP]]></category>
		<category><![CDATA[SFTP CentOS]]></category>
		<category><![CDATA[sftp chroot]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[ssh public key]]></category>
		<category><![CDATA[SSH server]]></category>
		<category><![CDATA[sshd_config]]></category>
		<category><![CDATA[ssh_chroot_rw_homedirs]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[unix operating systems]]></category>
		<category><![CDATA[web hosting]]></category>

		<guid isPermaLink="false">http://linuxexplore.com/?p=717</guid>
		<description><![CDATA[A chroot on Unix operating systems is an operation that changes the apparent root directory for the current running process and its children. A program that is run in such a modified environment cannot name (and therefore normally not access) files outside the designated directory tree. The term &#8220;chroot&#8221; may refer to the chroot(2) system&#8230;]]></description>
				<content:encoded><![CDATA[<p>A <b>chroot</b> on Unix operating systems is an operation that changes the apparent root directory for the current running process and its children. A program that is run in such a modified environment cannot name (and therefore normally not access) files outside the designated directory tree. The term &#8220;chroot&#8221; may refer to the <tt>chroot(2)</tt> system call or the <tt>chroot(8)</tt> wrapper program. The modified environment is called a &#8220;chroot jail&#8221;. From <a title="Chroot" href="http://en.wikipedia.org/wiki/Chroot" target="_blank">Wikipedia</a>.</p>
<p>Why it is required? If you want to set up your Linux box as a web hosting server for its users, you may need to give SFTP access. But they can get access to whole system Linux tree, just for reading but still very unsecure. So it is mandatory to lock them in their home directory.</p>
<p>There are many other applications, it&#8217;s just a common example, so lets start its configuration.</p>
<h2>Linux Box Detail:</h2>
<p>Its mine Linux Box, your Linux system may vary. Only thing to take care is the openssh-server version, because openssh-server-5.3p1 support SFTP chroot. Older version supports but its tricky, please let me k now if you want to know that too.</p>
<p lang="en-IN"><strong>Operating System:</strong> CentOS 6.3/x86_64</p>
<p lang="en-IN"><strong>Kernel Version:</strong> 2.6.32-279.19.1.el6/x86_64</p>
<p lang="en-IN"><strong>Openssh Server Version:</strong> openssh-server-5.3p1-81.el6_3/x86_64</p>
<pre><a href="http://linuxexplore.files.wordpress.com/2013/02/chroot-ori12.png"><img class="aligncenter size-large wp-image-728" alt="chroot-ori1" src="http://linuxexplore.files.wordpress.com/2013/02/chroot-ori12.png?w=610" width="610" height="328" /></a></pre>
<h2>sshd Server Configuration:</h2>
<p>Add the following tail output to your Linux box&#8217;s SSH</p>
<p>server configuration file /etc/ssh/sshd_config.</p>
<pre>[rahulpanwar@myhost ~]# tail -6 /etc/ssh/sshd_config
#Subsystem sftp /usr/libexec/openssh/sftp-server
Subsystem sftp internal-sftp
Match Group www-hosting
ChrootDirectory %h
ForceCommand internal-sftp
AllowTcpForwarding no</pre>
<p lang="en-IN">Then restart sshd service to enable this configuration.</p>
<pre>[rahulpanwar@myhost ~]# sudo /etc/init.d/sshd restart</pre>
<h2>Create Chroot Users:</h2>
<pre>[rahulpanwar@myhost ~]# sudo mkdir /etc/skel/public_html
[rahulpanwar@myhost ~]# sudo groupadd www-hosting
[rahulpanwar@myhost ~]# sudo useradd -s /sbin/nologin -g www-hosting linuxexplore.com</pre>
<h2>Setting Permissions:</h2>
<pre>[rahulpanwar@myhost ~]# sudo chown root:www-hosting /home/linuxexplore.com
[rahulpanwar@myhost ~]# sudo chmod 755 /home/linuxexplore.com</pre>
<p lang="en-IN">That’s all now create multiple users for web hosting, and offer the secure sftp access to your customers.</p>
<h2>Shell Script to Create Web Hosting Users:</h2>
<pre>#!/bin/bash
HOSTING_DIR="/etc/skel/public_html"
CHROOT_GRP="www-hosting"
USR_NAME="$1"

[ ! -d "$HOSTING_DIR" ] &amp;&amp; mkdir -p $HOSTING_DIR
grep ^"${CHROOT_GRP}:" /etc/group || /usr/sbin/groupadd www-hosting
grep ^"${USR_NAMEP}:" /etc/passwd || /usr/sbin/useradd -s /sbin/nologin -g $CHROO_GRP $USR_NAME
chown root:$CHROOT_GRP /home/$USR_NAME
chmod 755 /home/$USR_NAME</pre>
<h2>Selinux Configuration:</h2>
<p lang="en-IN"><a title="Selinux disable temporarily or permanently" href="http://linuxexplore.com/2012/08/04/selinux-disable-temporarily-or-permanently/" target="_blank">Disable the selinux permanently</a> or configure it for read write user&#8217;s home directory in SSH chroot.</p>
<pre>[rahulpanwar@myhost ~]# sudo setsebool -P ssh_chroot_rw_homedirs on
<span style="color:#333333;"><span style="font-family:Monaco, Consolas, Andale Mono, DejaVu Sans Mono, monospace;"><span style="font-size:small;">[rahulpanwar@myhost ~]# sudo restorecon -R /home/$USERNAME</span></span></span></pre>
<h2>Troubleshooting</h2>
<p lang="en-IN">From: <span style="color:#0000ff;"><span style="text-decoration:underline;"><a href="https://wiki.archlinux.org/index.php/SFTP-chroot">https://wiki.archlinux.org/index.php/SFTP-chroot</a></span></span></p>
<pre>sshd[3505]: fatal: bad ownership or modes for chroot directory "/home/linuxexplore.com"</pre>
<p>It&#8217;s ChrootDirectory ownership problem, sshd will reject sftp connections to accounts that are set to chroot into any directory that has ownership/permissions that sshd doesn&#8217;t consider secure. sshd&#8217;s apparently strict ownership/permissions requirements dictate that every directory in the chroot path must be owned by root and only writable for the owner. So, for example, if the chroot environment is in a user&#8217;s home directory both /home and /home/username must be owned by root and have permissions like 755 or 750 ( group ownership should allow user to access ).</p>
<p>If you are using sftp with public key check the following link:</p>
<p><a href="http://www.centos.org/modules/newbb/viewtopic.php?topic_id=37903&amp;forum=59">http://www.centos.org/modules/newbb/viewtopic.php?topic_id=37903&amp;forum=59</a></p>
<p>If chroot environment is in user&#8217;s home directory, make sure user have access to its home directory, or user would not be able to access its publickey, produce the error given in above <a title="CentOS 6" href="http://centos.org" target="_blank">CentOS</a> forum link.</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.linuxexplore.com/2013/02/20/chroot-sftp-users-for-web-hosting-server/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>How to Install LibreOffice 4.0.0 on CentOS 6/RHEL 6.3</title>
		<link>https://blog.linuxexplore.com/2013/02/09/how-to-install-libreoffice4-0-0-on-centos-6rhel-6-3/</link>
		<comments>https://blog.linuxexplore.com/2013/02/09/how-to-install-libreoffice4-0-0-on-centos-6rhel-6-3/#comments</comments>
		<pubDate>Fri, 08 Feb 2013 21:05:45 +0000</pubDate>
		<dc:creator><![CDATA[linuxexplore]]></dc:creator>
				<category><![CDATA[Linux Explore How to]]></category>
		<category><![CDATA[document foundation]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[Install libreoffice4.0]]></category>
		<category><![CDATA[Libreoffice]]></category>
		<category><![CDATA[libreoffice 4]]></category>
		<category><![CDATA[libreoffice 4.0]]></category>
		<category><![CDATA[libreoffice 4.0.0]]></category>
		<category><![CDATA[LibreOffice CentOS 6]]></category>
		<category><![CDATA[LibreOffice installation]]></category>
		<category><![CDATA[LibreOffice RHEL 6]]></category>
		<category><![CDATA[libreoffice4]]></category>
		<category><![CDATA[Linux Howto]]></category>
		<category><![CDATA[Openoffice]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://linuxexplore.com/?p=697</guid>
		<description><![CDATA[LibreOffice 4 is launched and I was very exited to install it on my CentOS 6. It was really a good experience to install and use it. I am very happy to see that its performance is enhanced a lot. Documents are opening very fast than the earlier versions. I would like to share its&#8230;]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.libreoffice.org" target="_blank">LibreOffice 4</a> is launched and I was very exited to install it on my <a href="http://www.centos.org/" target="_blank">CentOS 6</a>. It was really a good experience to install and use it. I am very happy to see that its performance is enhanced a lot. Documents are opening very fast than the earlier versions. I would like to share its installation procedure here for CentOS 6.</p>
<p><a href="http://linuxexplore.files.wordpress.com/2013/02/libreoffice4.png"><img class="aligncenter size-large wp-image-700" alt="LibreOffice4" src="http://linuxexplore.files.wordpress.com/2013/02/libreoffice4.png?w=610" width="610" height="342" /></a></p>
<h2>Preparation of installation of LibreOffice 4.0.0:</h2>
<p>First of all download the newer version of <a title="LibreOffice 4.0.0 Stable Download" href="http://download.documentfoundation.org/libreoffice/stable/4.0.0/rpm/x86/LibreOffice_4.0.0_Linux_x86_rpm.tar.gz" target="_blank">LibreOffice 4.0.0</a> using wget command as follows.</p>
<pre>wget http://download.documentfoundation.org/libreoffice/stable/4.0.0/rpm/x86/LibreOffice_4.0.0_Linux_x86_rpm.tar.gz</pre>
<p>This tar file contains RPMs of LibreOffice 4.0.0 package. Extract this tar file to some location, I like /opt.</p>
<pre>tar -xf Libreoffice_4.0.0_Linux_x86_rpm.tar.gz -C /opt</pre>
<h2>Uninstall Previous version of LibreOffice Package:</h2>
<p>Previously existing installation of LibreOffice package must be removed before proceeding to installation of newer version. You can use <a title="Yum A Package Management Tool" href="http://linuxexplore.com/2010/10/03/yum-a-package-management-tool/" target="_blank">yum erase command</a> to remove old LibreOffice package.</p>
<pre>yum erase libreoffice*</pre>
<p>You can use any method to uninstall earlier LibreOffice package but it must be uninstalled first. Check my earlier post <a title="Yum A Package Management Tool" href="http://linuxexplore.com/2010/10/03/yum-a-package-management-tool/" target="_blank">How to use yum for package management</a>.</p>
<h2>Installation of LibreOffice 4.0.0 RPMs:</h2>
<p>To install the RPM, you can use yum command again.</p>
<pre>cd /opt/LibreOffice_4.0.0.3_Linux_x86_rpm/RPMS/
yum localinstall *.rpm</pre>
<p>It will install all LibreOffice RPMs from RPMS directory.</p>
<h2>Finalizing the installation:</h2>
<p>The above command(s) does the first part of the installation process. To complete the process, you also need to install the desktop integration packages. To do this, change directory to the <code>desktop-integration</code> directory that is within the <code>RPMS</code> directory, by entering the following command at the command line of a terminal window:</p>
<pre><code>cd desktop-integration</code></pre>
<p>Now run the installation command again:</p>
<pre><code>yum localinstall libreoffice4.0-freedesktop-menus-4.0.0-103.noarch.rpm</code></pre>
<p><code><span style="font-family:Liberation Serif, serif;">The installation process is now completed, and you should have icons for all the LibreOffice.</span></code></p>
<p><a href="http://linuxexplore.files.wordpress.com/2013/02/screenshot-libreoffice.png"><img class="aligncenter size-large wp-image-701" alt="LibreOffice-Start" src="http://linuxexplore.files.wordpress.com/2013/02/screenshot-libreoffice.png?w=610" width="799" height="406" /></a></p>
<p style="text-align:center;"><a href="http://linuxexplore.files.wordpress.com/2013/02/screenshot-libreoffice-4-0.png"><img class="aligncenter  wp-image-702" alt="LibreOffice-about" src="http://linuxexplore.files.wordpress.com/2013/02/screenshot-libreoffice-4-0.png" width="307" height="241" /></a></p>
<p><code><span style="font-family:Liberation Serif, serif;">Now you are ready to enjoy the power of opensource. Try this version, you will feel proud to be an Open Source user or supporter. Thanks a lot to <a href="http://www.documentfoundation.org/" target="_blank">Document Foundation</a> for such a great product.</span></code></p>
<p><code><span style="font-family:Liberation Serif, serif;">If you like this please don't forget to share this with others, Thanks.</span></code></p>
]]></content:encoded>
			<wfw:commentRss>https://blog.linuxexplore.com/2013/02/09/how-to-install-libreoffice4-0-0-on-centos-6rhel-6-3/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>PAM with Radius Authentication</title>
		<link>https://blog.linuxexplore.com/2013/01/12/pam-with-radius-authentication-2/</link>
		<comments>https://blog.linuxexplore.com/2013/01/12/pam-with-radius-authentication-2/#comments</comments>
		<pubDate>Sat, 12 Jan 2013 15:57:48 +0000</pubDate>
		<dc:creator><![CDATA[linuxexplore]]></dc:creator>
				<category><![CDATA[Linux Explore How to]]></category>
		<category><![CDATA[AAA]]></category>
		<category><![CDATA[PAM]]></category>
		<category><![CDATA[Radius]]></category>

		<guid isPermaLink="false">http://linuxexplore.com/?p=686</guid>
		<description><![CDATA[PAM Radius Module allows any PAM-capable machine to become a RADIUS client for authentication and accounting requests. The actual authentication will be performed by a RADIUS server. The freeradius can be used for radius server. Download the PAM Radius Module To download the PAM Radius module, click here. Installing &#38; configuring PAM Radius Module To&#8230;]]></description>
				<content:encoded><![CDATA[<p>PAM Radius Module allows any PAM-capable machine to become a RADIUS client for authentication and accounting requests. The actual authentication will be performed by a RADIUS server. The <a href="http://freeradius.org/" target="_blank">freeradius</a> can be used for radius server.</p>
<p style="text-align:center;"><a href="https://www.facebook.com/linux.explore.blog"><img class="size-full wp-image-684 aligncenter" alt="PAM" src="http://linuxexplore.files.wordpress.com/2009/09/pam1.png?w=610" width="595" height="344" /></a></p>
<h1>Download the PAM Radius Module</h1>
<p>To download the PAM Radius module, click <a href="ftp://ftp.freeradius.org/pub/radius/pam_radius-1.3.17.tar.gz">here</a>.</p>
<h1>Installing &amp; configuring PAM Radius Module</h1>
<p>To install PAM radius module, give the following commands:</p>
<p>[root@rahul-pc]# tar -xvf pam_radius-1.3.17.tar.gz</p>
<p>[root@rahul-pc]# cd pam_radius-1.3.17</p>
<p>[root@rahul-pc]# make</p>
<p>It will generate a library file <strong>pam_radius_login.so</strong>. Copy that file to <strong>/lib/security/ </strong>directory.</p>
<p>[root@rahul-pc]# cp pam_radius_login.so /lib/security/</p>
<p>Create a directory <strong>/etc/raddb/. </strong>Copy the file <strong>pam_radius_auth.conf</strong> to <strong>/etc/raddb/</strong> directory named as <strong>server.</strong></p>
<p>[root@rahul-pc]# mkdir /etc/raddb/</p>
<p>[root@rahul-pc]# cp pam_radius_auth.conf /etc/raddb/server</p>
<p>Change the file <strong>/etc/raddb/server</strong> according to your configuration.</p>
<p># Radius Server IP address           Secret                                   Timeout</p>
<p>192.168.2.43                                       yoursecret                          3</p>
<h1>Configure PAM Applications for Radius Server</h1>
<p>After doing the above configurations, edit the PAM application’s files to authenticate from radius server.</p>
<h2>SSH server configuration</h2>
<p>To authenticate the SSH server request from radius server, edit the file /etc/pam.d/sshd.  Add a new line</p>
<p>auth                       sufficient                             pam_radius_auth.so</p>
<p>above the following line</p>
<p>auth                       include                                 system-auth</p>
<p>After changing the PAM file, the authentication request for SSH server will go to the configured radius server (192.168.2.43 in our example) first. If the request is not accepted from radius server, then it will check the system-authentication.</p>
<h2>Password change configuration</h2>
<p>Similarly, to change the password of any SSH user, change the file /etc/pam.d/passwd. Add a new line</p>
<p>password                            sufficient                             pam_radius_auth.so</p>
<p>above the following line</p>
<p>password                            include                 system-auth</p>
<p>After this password change request will go to the radius server.</p>
<h2>FTP Server Configuration</h2>
<p>Similarly do the above changes for <strong>vsftpd</strong> file in /etc/pam.d/ directory. Then the entire authentication request for FTP server will go to radius server.</p>
<p>In the same way do the changes for other required applications.</p>
<p><a href="http://linuxexplore.com/how-tos/pam-with-radius-authentication/">PAM with Radius Authentication</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.linuxexplore.com/2013/01/12/pam-with-radius-authentication-2/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>2012 in review, welcome 2013</title>
		<link>https://blog.linuxexplore.com/2013/01/01/2012-in-review-welcome-2013/</link>
		<comments>https://blog.linuxexplore.com/2013/01/01/2012-in-review-welcome-2013/#comments</comments>
		<pubDate>Tue, 01 Jan 2013 18:26:39 +0000</pubDate>
		<dc:creator><![CDATA[linuxexplore]]></dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[2012 review]]></category>
		<category><![CDATA[2013]]></category>
		<category><![CDATA[awards]]></category>
		<category><![CDATA[Entertainment]]></category>
		<category><![CDATA[film]]></category>
		<category><![CDATA[Happy new year]]></category>
		<category><![CDATA[helper monkeys]]></category>
		<category><![CDATA[linuxexplore]]></category>

		<guid isPermaLink="false">http://linuxexplore.com/?p=679</guid>
		<description><![CDATA[A very happy new year Thanks to all my friends and followers. The WordPress.com stats helper monkeys prepared a 2012 annual report for this blog. Here&#8217;s an excerpt: 4,329 films were submitted to the 2012 Cannes Film Festival. This blog had 38,000 views in 2012. If each view were a film, this blog would power&#8230;]]></description>
				<content:encoded><![CDATA[<h2><em><span style="color:#0000ff;">A very happy new year</span></em></h2>
<h3><em><span style="color:#993366;">Thanks to all my friends and followers.</span></em></h3>
<p>The WordPress.com stats helper monkeys prepared a 2012 annual report for this blog.</p>
<p><a href="http://linuxexplore.com/2012/annual-report/"><img alt="" src="http://www.wordpress.com/wp-content/mu-plugins/annual-reports/img/2012-emailteaser.png" width="100%" /></a></p>
<p>Here&#8217;s an excerpt:</p>
<blockquote><p>4,329 films were submitted to the 2012 Cannes Film Festival. This blog had <strong>38,000</strong> views in 2012. If each view were a film, this blog would power 9 Film Festivals</p></blockquote>
<p><a href="http://linuxexplore.com/2012/annual-report/">Click here to see the complete report.</a></p>
]]></content:encoded>
			<wfw:commentRss>https://blog.linuxexplore.com/2013/01/01/2012-in-review-welcome-2013/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
