<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	
	>
<channel>
	<title>Comments on: Chroot SFTP Users for Web Hosting Server.</title>
	<atom:link href="https://blog.linuxexplore.com/2013/02/20/chroot-sftp-users-for-web-hosting-server/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.linuxexplore.com/2013/02/20/chroot-sftp-users-for-web-hosting-server/</link>
	<description>Exploring Linux</description>
	<lastBuildDate>Sat, 13 Sep 2014 06:18:06 +0000</lastBuildDate>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.0.38</generator>
	<item>
		<title>By: &#187; Linuxaria &#8211; Everything about GNU/Linux and Open source How to Chroot SFTP Users on Linux for maximum security</title>
		<link>https://blog.linuxexplore.com/2013/02/20/chroot-sftp-users-for-web-hosting-server/#comment-192</link>
		<dc:creator><![CDATA[&#187; Linuxaria &#8211; Everything about GNU/Linux and Open source How to Chroot SFTP Users on Linux for maximum security]]></dc:creator>
		<pubDate>Sun, 19 Jan 2014 19:37:13 +0000</pubDate>
		<guid isPermaLink="false">http://linuxexplore.com/?p=717#comment-192</guid>
		<description><![CDATA[[&#8230;] Article by Rahul Panwar first posted on http://linuxexplore.com/ [&#8230;]]]></description>
		<content:encoded><![CDATA[<p>[&#8230;] Article by Rahul Panwar first posted on <a href="http://linuxexplore.com/" rel="nofollow">http://linuxexplore.com/</a> [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bhietbrink</title>
		<link>https://blog.linuxexplore.com/2013/02/20/chroot-sftp-users-for-web-hosting-server/#comment-191</link>
		<dc:creator><![CDATA[bhietbrink]]></dc:creator>
		<pubDate>Mon, 06 May 2013 22:40:37 +0000</pubDate>
		<guid isPermaLink="false">http://linuxexplore.com/?p=717#comment-191</guid>
		<description><![CDATA[Thanks for your help Rahul. Unfortunately this is not the solution, as user dir is for when you have a single domain with users branching of it. In my case, I have multiple domains, and am using the Virtual Host feature of the httpd.conf file. Appreciate your efforts though. I shall continue my search.]]></description>
		<content:encoded><![CDATA[<p>Thanks for your help Rahul. Unfortunately this is not the solution, as user dir is for when you have a single domain with users branching of it. In my case, I have multiple domains, and am using the Virtual Host feature of the httpd.conf file. Appreciate your efforts though. I shall continue my search.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rahul Panwar</title>
		<link>https://blog.linuxexplore.com/2013/02/20/chroot-sftp-users-for-web-hosting-server/#comment-190</link>
		<dc:creator><![CDATA[Rahul Panwar]]></dc:creator>
		<pubDate>Sun, 05 May 2013 15:04:30 +0000</pubDate>
		<guid isPermaLink="false">http://linuxexplore.com/?p=717#comment-190</guid>
		<description><![CDATA[Do you try UserDir option in httpd configuration? I don&#039;t know it will work but it is written in httpd.conf document &quot;it can confirm the presence of a username on the system (depending on home directory permissions)&quot;.]]></description>
		<content:encoded><![CDATA[<p>Do you try UserDir option in httpd configuration? I don&#8217;t know it will work but it is written in httpd.conf document &#8220;it can confirm the presence of a username on the system (depending on home directory permissions)&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Benny H</title>
		<link>https://blog.linuxexplore.com/2013/02/20/chroot-sftp-users-for-web-hosting-server/#comment-189</link>
		<dc:creator><![CDATA[Benny H]]></dc:creator>
		<pubDate>Sun, 05 May 2013 10:33:32 +0000</pubDate>
		<guid isPermaLink="false">http://linuxexplore.com/?p=717#comment-189</guid>
		<description><![CDATA[Thanks for a really well written article Rahul. When setting up using this method, it would appear that PHP run from inside these newly created directories is unable to execute due to a permissions issue. PHP runs as user apache but in this article we&#039;re using www-hosting. Do you have any advice on how to get the PHP scripts to run please?]]></description>
		<content:encoded><![CDATA[<p>Thanks for a really well written article Rahul. When setting up using this method, it would appear that PHP run from inside these newly created directories is unable to execute due to a permissions issue. PHP runs as user apache but in this article we&#8217;re using www-hosting. Do you have any advice on how to get the PHP scripts to run please?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Klaudia</title>
		<link>https://blog.linuxexplore.com/2013/02/20/chroot-sftp-users-for-web-hosting-server/#comment-188</link>
		<dc:creator><![CDATA[Klaudia]]></dc:creator>
		<pubDate>Sun, 21 Apr 2013 04:02:08 +0000</pubDate>
		<guid isPermaLink="false">http://linuxexplore.com/?p=717#comment-188</guid>
		<description><![CDATA[Fantastic report, nicely believed out! I packed
my baggage and I&#039;m shifting to Boston!]]></description>
		<content:encoded><![CDATA[<p>Fantastic report, nicely believed out! I packed<br />
my baggage and I&#8217;m shifting to Boston!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CentOS 6.3 sftp chroot jail - Page 2</title>
		<link>https://blog.linuxexplore.com/2013/02/20/chroot-sftp-users-for-web-hosting-server/#comment-187</link>
		<dc:creator><![CDATA[CentOS 6.3 sftp chroot jail - Page 2]]></dc:creator>
		<pubDate>Wed, 27 Feb 2013 08:13:53 +0000</pubDate>
		<guid isPermaLink="false">http://linuxexplore.com/?p=717#comment-187</guid>
		<description><![CDATA[[...] Add the following tail output to your Linux box&#8217;s SSH  server configuration file /etc/ssh/sshd_config.  [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  Then restart sshd service to enable this configuration.  [rahulpanwar@myhost ~]# sudo /etc/init.d/sshd restart  Create Chroot Users:  [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  Setting Permissions:  [rahulpanwar@myhost ~]# sudo chown root:www-hosting /home/linuxexplore.com [rahulpanwar@myhost ~]# sudo chmod 755 /home/linuxexplore.com  That&#8217;s all now create multiple users for web hosting, and offer the secure sftp access to your customers. Shell Script to Create Web Hosting Users:  #!/bin/bash HOSTING_DIR=&quot;/etc/skel/public_html&quot; CHROOT_GRP=&quot;www-hosting&quot; USR_NAME=&quot;$1&quot;  [ ! -d &quot;$HOSTING_DIR&quot; ] &amp;&amp; mkdir -p $HOSTING_DIR grep ^&quot;${CHROOT_GRP}:&quot; /etc/group &#124;&#124; /usr/sbin/groupadd www-hosting grep ^&quot;${USR_NAMEP}:&quot; /etc/passwd &#124;&#124; /usr/sbin/useradd -s /sbin/nologin -g $CHROO_GRP $USR_NAME chown root:$CHROOT_GRP /home/$USR_NAME chmod 755 /home/$USR_NAME  Selinux Configuration:  Disable the selinux permanently or configure it for read write user&#8217;s home directory in SSH chroot.  [rahulpanwar@myhost ~]# sudo setsebool -P ssh_chroot_rw_homedirs on [rahulpanwar@myhost ~]# sudo restorecon -R /home/$USERNAME  For more information, it might help. Chroot SFTP CentOS 6 [...]]]></description>
		<content:encoded><![CDATA[<p>[&#8230;] Add the following tail output to your Linux box&#8217;s SSH  server configuration file /etc/ssh/sshd_config.  [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  Then restart sshd service to enable this configuration.  [rahulpanwar@myhost ~]# sudo /etc/init.d/sshd restart  Create Chroot Users:  [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  Setting Permissions:  [rahulpanwar@myhost ~]# sudo chown root:www-hosting /home/linuxexplore.com [rahulpanwar@myhost ~]# sudo chmod 755 /home/linuxexplore.com  That&#8217;s all now create multiple users for web hosting, and offer the secure sftp access to your customers. Shell Script to Create Web Hosting Users:  #!/bin/bash HOSTING_DIR=&quot;/etc/skel/public_html&quot; CHROOT_GRP=&quot;www-hosting&quot; USR_NAME=&quot;$1&quot;  [ ! -d &quot;$HOSTING_DIR&quot; ] &amp;&amp; mkdir -p $HOSTING_DIR grep ^&quot;${CHROOT_GRP}:&quot; /etc/group || /usr/sbin/groupadd www-hosting grep ^&quot;${USR_NAMEP}:&quot; /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  Selinux Configuration:  Disable the selinux permanently or configure it for read write user&#8217;s home directory in SSH chroot.  [rahulpanwar@myhost ~]# sudo setsebool -P ssh_chroot_rw_homedirs on [rahulpanwar@myhost ~]# sudo restorecon -R /home/$USERNAME  For more information, it might help. Chroot SFTP CentOS 6 [&#8230;]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
