<?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; featured</title>
	<atom:link href="https://blog.linuxexplore.com/tag/featured-2/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>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>
	</channel>
</rss>
