<?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; Linux Explore How to</title>
	<atom:link href="https://blog.linuxexplore.com/category/linux-explore-how-to/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>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>Look what Stella brought to CentOS 6.3, Desktop OS based on Centos</title>
		<link>https://blog.linuxexplore.com/2012/08/08/look-what-stella-brought-to-centos-6-3-desktop-os-based-on-centos/</link>
		<comments>https://blog.linuxexplore.com/2012/08/08/look-what-stella-brought-to-centos-6-3-desktop-os-based-on-centos/#comments</comments>
		<pubDate>Wed, 08 Aug 2012 16:40:54 +0000</pubDate>
		<dc:creator><![CDATA[linuxexplore]]></dc:creator>
				<category><![CDATA[Linux Explore How to]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[Browser]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[CentOS 6.3]]></category>
		<category><![CDATA[CentOS update]]></category>
		<category><![CDATA[core enterprise]]></category>
		<category><![CDATA[default media player]]></category>
		<category><![CDATA[Desktop OS]]></category>
		<category><![CDATA[enterprise-it]]></category>
		<category><![CDATA[Entertainment]]></category>
		<category><![CDATA[intowire]]></category>
		<category><![CDATA[Libreoffice]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Administrator]]></category>
		<category><![CDATA[Linux games]]></category>
		<category><![CDATA[Linux hacks]]></category>
		<category><![CDATA[Linux Howto]]></category>
		<category><![CDATA[Linux Tips]]></category>
		<category><![CDATA[Linux Tricks]]></category>
		<category><![CDATA[Mandriva]]></category>
		<category><![CDATA[Media Player]]></category>
		<category><![CDATA[Office]]></category>
		<category><![CDATA[Openoffice]]></category>
		<category><![CDATA[Operating system]]></category>
		<category><![CDATA[Remote Desktop]]></category>
		<category><![CDATA[ROMP]]></category>
		<category><![CDATA[ROSA Media Player]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[Stella]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[video file formats]]></category>
		<category><![CDATA[virtualbox]]></category>
		<category><![CDATA[VLC]]></category>
		<category><![CDATA[VLC player]]></category>

		<guid isPermaLink="false">http://linuxexplore.wordpress.com/?p=575</guid>
		<description><![CDATA[There is a new Linux distribution released almost every week, sometimes, even every day. The latest is one called Stella, and the first version is Stella 6.3. Stella is a desktop-focused remix of CentOS, and Stella 6.3 is based on CentOS 6.3. If you are familiar with CentOS, you know that out of the box,&#8230;]]></description>
				<content:encoded><![CDATA[<p>There is a new Linux distribution released almost every week, sometimes, even every day. The latest is one called Stella, and the first version is Stella 6.3. Stella is a desktop-focused remix of <a href="http://linuxbsdos.com/category/centos" rel="nofollow">CentOS</a>, and Stella 6.3 is based on CentOS 6.3.</p>
<p>If you are familiar with CentOS, you know that out of the box, it is not really designed as a desktop distribution. Stella changes all that, as it is primarily aimed at desktop users, while retaining the core enterprise features and capabilities of CentOS.</p>
<p>And you can see that just by looking at the package manager. The package categories tell you that everything you can find in CentOS is also available in Stella. Plus desktop applications that you will not find in any default installation of CentOS. For example, an application listed in the screen shot below, is <a href="http://www.linuxbsdos.com/2012/04/10/romp-media-player-with-built-in-desktop-recorder/" rel="nofollow">ROSA Media Player</a> (ROMP), the default media player in <a href="http://www.linuxbsdos.com/category/rosa-desktop/" rel="nofollow">ROSA Desktop</a>, a distribution based on <a href="http://linuxbsdos.com/category/mandriva" rel="nofollow">Mandriva</a> Linux.</p>
<p style="text-align:center;"><a href="http://www.intowire.com/iWiRE/blog/view/52955/look-what-stella-brought-to-centos-63-desktop-os-based-on-centos#.UCKUDqSEaAM.wordpress"><img src="http://linuxexplore.files.wordpress.com/2012/08/stelladesktop8-600x469.png" alt="" /></a></p>
<p>Because it is loaded with desktop applications and media codecs not available in CentOS, you can play most audio and video file formats out of the box. Here it shows a favorite online video playing in Firefox.</p>
<p style="text-align:center;"><a href="http://www.intowire.com/iWiRE/blog/view/52955/look-what-stella-brought-to-centos-63-desktop-os-based-on-centos#.UCKUDqSEaAM.wordpress"><img src="http://linuxexplore.files.wordpress.com/2012/08/stelladesktop7-600x450.png" alt="" /></a></p>
<p>The next few screen shots show what the desktop looks like and some of the applications accessible from the menu. This one shows installed Internet applications.</p>
<p style="text-align:center;"><a href="http://www.intowire.com/iWiRE/blog/view/52955/look-what-stella-brought-to-centos-63-desktop-os-based-on-centos#.UCKUDqSEaAM.wordpress"><img src="http://linuxexplore.files.wordpress.com/2012/08/stelladesktop1-600x450.png" alt="" /></a></p>
<p>Installed Office applications.</p>
<p style="text-align:center;"><a href="http://www.intowire.com/iWiRE/blog/view/52955/look-what-stella-brought-to-centos-63-desktop-os-based-on-centos#.UCKUDqSEaAM.wordpress"><img src="http://linuxexplore.files.wordpress.com/2012/08/stelladesktop2-600x450.png" alt="" /></a></p>
<p>Installed multimedia applications.</p>
<p style="text-align:center;"><a href="http://www.intowire.com/iWiRE/blog/view/52955/look-what-stella-brought-to-centos-63-desktop-os-based-on-centos#.UCKUDqSEaAM.wordpress"><img src="http://linuxexplore.files.wordpress.com/2012/08/stelladesktop3-600x450.png" alt="" /></a></p>
<p>Updates manager.</p>
<p style="text-align:center;"><a href="http://www.intowire.com/iWiRE/blog/view/52955/look-what-stella-brought-to-centos-63-desktop-os-based-on-centos#.UCKUDqSEaAM.wordpress"><img src="http://linuxexplore.files.wordpress.com/2012/08/stelladesktop4-600x450.png" alt="" /></a></p>
<p><a href="http://www.intowire.com/iWiRE/blog/view/52955/look-what-stella-brought-to-centos-63-desktop-os-based-on-centos#.UCKUDqSEaAM.wordpress">Read full story</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.linuxexplore.com/2012/08/08/look-what-stella-brought-to-centos-6-3-desktop-os-based-on-centos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wubi: Making it easy for Windows Users to Install Ubuntu</title>
		<link>https://blog.linuxexplore.com/2012/07/27/wubi-making-it-easy-for-windows-users-to-install-ubuntu/</link>
		<comments>https://blog.linuxexplore.com/2012/07/27/wubi-making-it-easy-for-windows-users-to-install-ubuntu/#comments</comments>
		<pubDate>Fri, 27 Jul 2012 18:28:40 +0000</pubDate>
		<dc:creator><![CDATA[linuxexplore]]></dc:creator>
				<category><![CDATA[Linux Explore How to]]></category>
		<category><![CDATA[install Linux]]></category>
		<category><![CDATA[install ubuntu]]></category>
		<category><![CDATA[intowire]]></category>
		<category><![CDATA[kubuntu]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Howto]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[ubuntustudio]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows to Linux]]></category>
		<category><![CDATA[wubi]]></category>
		<category><![CDATA[xubuntu]]></category>

		<guid isPermaLink="false">http://linuxexplore.wordpress.com/?p=469</guid>
		<description><![CDATA[We’ve seen this Ubuntu installer for Windows before, but now it has new features and a new name: Wubi Beta. It uses no confusing lingo, and even lets you choose a variety of options that similar applications don’t offer: Choose the drive to install Ubuntu (should have at least 10GB available) Choose how much room&#8230;]]></description>
				<content:encoded><![CDATA[<p><a href="http://linuxexplore.files.wordpress.com/2012/07/ubuntu.png"><img class="aligncenter size-full wp-image-472" title="ubuntu" src="http://linuxexplore.files.wordpress.com/2012/07/ubuntu.png" alt="wubi" width="500" height="401" /></a></p>
<p>We’ve seen this <a href="http://cybernetnews.com/ubuntu-installation-now-easier-than-ever-in-windows/" rel="nofollow" target="_self">Ubuntu installer for Windows</a> before, but now it has new features and a new name: <a href="http://wubi-installer.org" rel="nofollow" target="_self">Wubi Beta</a>. It uses no confusing lingo, and even lets you choose a variety of options that similar applications don’t offer:</p>
<ul>
<li>Choose the drive to install Ubuntu (should have at least 10GB available)</li>
<li>Choose how much room to reserve for Ubuntu (minimum is 4GB while 8GB is recommended)</li>
<li>Chose whether to install <a href="http://www.ubuntu.com/" rel="nofollow" target="_self">Ubuntu</a> (GNOME), <a href="http://www.kubuntu.org/" rel="nofollow" target="_self">Kubuntu</a> (KDE), <a href="http://www.xubuntu.org/" rel="nofollow" target="_self">Xubuntu</a> (XFCE), or <a href="http://www.ubuntustudio.org/" rel="nofollow" target="_self">UbuntuStudio</a> (for multimedia workstations).</li>
<li>Choose your language</li>
<li>Pick your username and password</li>
</ul>
<p><a href="http://www.intowire.com/iWiRE/blog/view/41716/wubi-making-it-easy-for-windows-users-to-install-ubuntu#.UBLab93hUD8.wordpress">Read full story</a></p>
]]></content:encoded>
			<wfw:commentRss>https://blog.linuxexplore.com/2012/07/27/wubi-making-it-easy-for-windows-users-to-install-ubuntu/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>File encryption/decryption Linux</title>
		<link>https://blog.linuxexplore.com/2011/01/20/file-encryptiondecryption-linux/</link>
		<comments>https://blog.linuxexplore.com/2011/01/20/file-encryptiondecryption-linux/#comments</comments>
		<pubDate>Thu, 20 Jan 2011 18:12:35 +0000</pubDate>
		<dc:creator><![CDATA[linuxexplore]]></dc:creator>
				<category><![CDATA[Linux Explore How to]]></category>
		<category><![CDATA[decryption]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[Linux Howto]]></category>
		<category><![CDATA[openssl]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[password on tar file]]></category>
		<category><![CDATA[tar]]></category>
		<category><![CDATA[tar with encryption]]></category>
		<category><![CDATA[tar with password]]></category>

		<guid isPermaLink="false">http://linuxexplore.wordpress.com/?p=333</guid>
		<description><![CDATA[Openssl is one of the best tools which can be used to encrypt/decrypt files. You can password protect your important data to avoid misuse. To encrypt your files use the command: openssl des3 -salt -in $FILENAME -out ${FILENAME}.des3 To decrypt the file use the command: openssl des3 -d -salt -in ${FILENAME}.des3 -out ${FILENAME} You can&#8230;]]></description>
				<content:encoded><![CDATA[<p>Openssl is one of the best tools which can be used to encrypt/decrypt files. You can password protect your important data to avoid misuse.</p>
<p>To encrypt your files use the command:</p>
<pre>openssl des3 -salt -in $FILENAME -out ${FILENAME}.des3</pre>
<p>To decrypt the file use the command:</p>
<pre>openssl des3 -d -salt -in ${FILENAME}.des3 -out ${FILENAME}</pre>
<p>You can also use my script ‘tarcrypt.sh’ to encrypt/decrypt files. This script is using tar to compress/decompress with encryption/decryption functionality.</p>
<pre>#!/bin/sh
#
# 'tarcrypt.sh' script can used to compress/decompress the data with encryption.
#
# This script is created &amp; tested by Rahul Panwar.
# WARNING!!! Use it at your own risk.
# Please report the bugs or queries to panwar.rahul@gmail.com

VERSION="Version 1.1.0.1nCreated by: Rahul Panwar"
PASS=""
PASS_OPTION=""
EXT_OPTION=""
COMP_FILE="encrypted_file"

DATA_FILES_ALL=""

# Usage
usage ()
{
	echo "Usage:"
	echo "	${0##*/} -c " [  ... "  [-p ]"
	echo "	${0##*/} -x  [-C ] [-p ]"
	echo "	${0##*/} -h"
	echo "	${0##*/} -v"
	echo "OPTIONS:"
	echo "	-c|--compress	: Compress and encrypt the file(s) or directory(ies)
					for multiple files use double quotes (for example "file1 file2 dir1")."
	echo "	-x|--decompress	: Decrypt and uncompress the file"
	echo "	-p|--password	: Password to encrypt/decrypt the file"
	echo "	-C|--extract	: Change directory, to extract the compressed file, default is current directory"
	echo "	-h|--help	: To see this help"
	echo "	-v|--version	: Check the version"
}
[ $# = 0 ] &amp;&amp; usage &amp;&amp; exit 1

# to encrypt files using openssl
encrypt_file()
{
	FNAME=$1

	#openssl des3 -salt -in "$FNAME" -out "$FNAME.des3"
	openssl des3 -salt -out "$FNAME" ${PASS_OPTION}
}

# to decrypt the files using openssl
decrypt_file()
{
	FNAME=$1

	#openssl des3 -d -salt -in "$FNAME" -out "${FNAME%.[^.]*}"
	openssl des3 -d -salt -in "$FNAME" ${PASS_OPTION}
}

# compress and encrypt the files
en_comp()
{
	tar -czp ${DATA_FILES} | encrypt_file ${COMP_FILE}
}

# decrypt and uncompress the files
de_comp()
{
	decrypt_file ${COMP_FILE} | tar ${EXT_OPTION} -xz
}

# main function
main_function()
{
	compress=""
	decompress=""
	extract=""
	password=""
	while test "$1" != "" ; do
		OPT=$1
		OPT_VAL1=$2
		OPT_VAL2=$3
		case "$OPT" in
			--compress|-c)
				DATA_FILES_ALL="${OPT_VAL1}"
				[ ! "${OPT_VAL2}" ] &amp;&amp; echo -e "No encrypt filename, using default name: ${COMP_FILE}"
				COMP_FILE=${OPT_VAL2:-$COMP_FILE}
				compress=1
				shift
				[ "$OPT_VAL2" ] &amp;&amp; shift
			;;
			--decompress|-x)
				COMP_FILE=${OPT_VAL1:-$COMP_FILE}
				decompress=1
				shift
			;;
			--password|-p)
				PASS=${OPT_VAL1}
				[ "$PASS" ] &amp;&amp; password=1 &amp;&amp; PASS_OPTION="-pass pass:${PASS}"
				shift
			;;
			--extract|-C)
				[ ! -d "$OPT_VAL1" ] &amp;&amp; echo -e "Extract directory not exists" &amp;&amp; exit 1
				EXT_OPTION="-C ${OPT_VAL1:-$PWD}"
				extract=1
				shift
			;;
			--help|-h)
				usage
				exit 0
			;;
			--version|-v)
				echo -e "${VERSION}"
				exit 0
			;;
			-*)
				echo "Error: no such option $OPT"
				usage
				exit 1
			;;
			*)
				echo -e "Error: invalid option $OPT"
				usage
				exit 1
		esac
		shift
	done

	if [ "$compress" ] &amp;&amp; [ "$decompress" ]; then
		echo -e "n-c and -x can't be used simultaneouslyn" &amp;&amp; usage &amp;&amp; exit 1
	elif [ "$extract" ] &amp;&amp; [ "$compress" ]; then
		echo -e "n-C can only use with -x optionn" &amp;&amp; usage &amp;&amp; exit 1
	fi
}

main_function "$@"
if [ "$compress" ]; then
	for FILES in ${DATA_FILES_ALL}; do
		[ -e "${FILES}" ] &amp;&amp; DATA_FILES="${DATA_FILES} ${FILES}"
	done
	if [ ! "${DATA_FILES}" ]; then
		echo -e "No file(s) found to compress" &amp;&amp; exit 2
	fi
	echo "==&gt; compressing"
	en_comp &amp;&gt;/dev/null &amp;&amp; echo "success" || echo "failure"
elif [ "$decompress" ]; then
	[ ! -e "${COMP_FILE}" ] &amp;&amp; echo -e "No file to decrypt" &amp;&amp; exit 2
	echo "==&gt; decompressing"
	de_comp &amp;&gt;/dev/null &amp;&amp; echo "success" || echo "failure"
fi</pre>
<p>If you found any bug in the script, please write your comment. I like to improve this, so suggestions are most welcome.</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.linuxexplore.com/2011/01/20/file-encryptiondecryption-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to start shell script writing</title>
		<link>https://blog.linuxexplore.com/2010/10/06/how-to-start-shell-script-writing/</link>
		<comments>https://blog.linuxexplore.com/2010/10/06/how-to-start-shell-script-writing/#comments</comments>
		<pubDate>Tue, 05 Oct 2010 19:33:48 +0000</pubDate>
		<dc:creator><![CDATA[linuxexplore]]></dc:creator>
				<category><![CDATA[Linux Explore How to]]></category>
		<category><![CDATA[/bin/sh]]></category>
		<category><![CDATA[Linux Howto]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[shell scripting]]></category>
		<category><![CDATA[shellscript]]></category>

		<guid isPermaLink="false">http://linuxexplore.wordpress.com/?p=310</guid>
		<description><![CDATA[This is actually, I want to share, how I learned the shell scripting. It may be helpful for beginners. I am writing it step by step so that it will easy to understand: STEP 1: Do your task manually &#38; prepare the steps. If you know the basic Linux commands, it will help you to&#8230;]]></description>
				<content:encoded><![CDATA[<p>This is actually, I want to share, how I learned the shell scripting.  It may be helpful for beginners. I am writing it step by step so that  it will easy to understand:</p>
<p><strong>STEP 1: Do your task manually &amp; prepare the steps.</strong></p>
<p>If you know the basic Linux commands, it will help you to write a  shell script. I am not writing the basic Linux commands here, you can  see check here <a href="http://www.comptechdoc.org/os/linux/usersguide/linux_ugbasics.html">http://www.comptechdoc.org/os/linux/usersguide/linux_ugbasics.html</a></p>
<p><a class="alignleft" href="http://linuxexplore.wordpress.com/how-tos/how-to-start-shell-script-writing" target="_self">View full topic</a></p>
]]></content:encoded>
			<wfw:commentRss>https://blog.linuxexplore.com/2010/10/06/how-to-start-shell-script-writing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PAM with Radius Authentication</title>
		<link>https://blog.linuxexplore.com/2009/09/28/pam-with-radius-authentication/</link>
		<comments>https://blog.linuxexplore.com/2009/09/28/pam-with-radius-authentication/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 08:57:35 +0000</pubDate>
		<dc:creator><![CDATA[linuxexplore]]></dc:creator>
				<category><![CDATA[Linux Explore How to]]></category>
		<category><![CDATA[PAM with Radius Authentication]]></category>
		<category><![CDATA[Freeradius]]></category>
		<category><![CDATA[PAM]]></category>
		<category><![CDATA[pam radius]]></category>
		<category><![CDATA[pam_radius]]></category>
		<category><![CDATA[pam_radius_auth]]></category>
		<category><![CDATA[raddb]]></category>
		<category><![CDATA[Radius]]></category>

		<guid isPermaLink="false">http://linuxexplore.wordpress.com/?p=186</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>
<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><a href="http://linuxexplore.com/how-tos/pam-with-radius-authentication/">Read full topic&#8230;</a></p>
]]></content:encoded>
			<wfw:commentRss>https://blog.linuxexplore.com/2009/09/28/pam-with-radius-authentication/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SFTP (Secure File Transfer Protocol) With Dropbear</title>
		<link>https://blog.linuxexplore.com/2009/09/15/sftp-secure-file-transfer-protocol-with-dropbear/</link>
		<comments>https://blog.linuxexplore.com/2009/09/15/sftp-secure-file-transfer-protocol-with-dropbear/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 16:50:02 +0000</pubDate>
		<dc:creator><![CDATA[linuxexplore]]></dc:creator>
				<category><![CDATA[Linux Explore How to]]></category>
		<category><![CDATA[dropbear]]></category>
		<category><![CDATA[Secure File Transfer Protocol]]></category>
		<category><![CDATA[SFTP]]></category>
		<category><![CDATA[SSH server]]></category>
		<category><![CDATA[sshd]]></category>

		<guid isPermaLink="false">http://linuxexplore.wordpress.com/?p=154</guid>
		<description><![CDATA[Configure Dropbear SSH server SSH server can’t work independently, it require SSH server (like dropbear) to run. Dropbear require libz &#38; libcrypto to run, so please first install them (if not install already). To install the dropbear SSH server, follow the steps given below. -bash-3.2# tar –xvf dropbear-0.52.tar.bz2 -bash-3.2# cd dropbear-0.52 -bash-3.2# ./configure -bash-3.2# make&#8230;]]></description>
				<content:encoded><![CDATA[<h1>Configure Dropbear SSH server</h1>
<p>SSH server can’t work independently, it require SSH server (like dropbear) to run. Dropbear require <strong>libz</strong> &amp; <strong>libcrypto</strong> to run, so please first install them (if not install already). To install the <strong>dropbear SSH server</strong>, follow the steps given below.</p>
<p>-bash-3.2# tar –xvf dropbear-0.52.tar.bz2</p>
<p>-bash-3.2# cd dropbear-0.52</p>
<p>-bash-3.2# ./configure</p>
<p>-bash-3.2# make PROGRAMS=&#8221;dropbear dbclient dropbearkey dropbearconvert scp&#8221;</p>
<p>-bash-3.2# make PROGRAMS=&#8221;dropbear dbclient dropbearkey dropbearconvert scp&#8221; install</p>
<p>It will install the dropbear SSH server. Now you can create the softlink of <strong>dbclient</strong> as <strong>ssh.</strong> It is not mandatory, you can also use <strong>dbclient</strong> instead of <strong>ssh</strong> command.</p>
<p>-bash-3.2# ln –s /usr/local/bin/dbclient /usr/bin/ssh</p>
<p>To start the dropbear SSH server, first create the <strong>dss</strong> &amp; <strong>rsa</strong> keys (for the encryption of SSH packets) in <strong>/etc/dropbear</strong> directory. SSH server does work without encryption, so it is mandatory to create the keys.</p>
<p>-bash-3.2# dropbearkey –t dss –f /etc/dropbear/dropbear_dss_host_key</p>
<p>-bash-3.2# dropbearkey –t rsa –f /etc/dropbear/dropbear_rsa_host_key</p>
<p>Now <strong>dropbear </strong>can<strong> </strong>be started simply by following command.</p>
<p>-bash-3.2# dropbear</p>
<p>If above will done properly you can connect your system via SSH.</p>
<p><a href="http://linuxexplore.wordpress.com/how-tos/sftp-secure-file-transfer-protocol-with-dropbear/" target="_self">View Complete Topic</a></p>
]]></content:encoded>
			<wfw:commentRss>https://blog.linuxexplore.com/2009/09/15/sftp-secure-file-transfer-protocol-with-dropbear/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
