<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: sftp chroot jail in Ubuntu</title>
	<atom:link href="http://emphaticnonsense.com/2010/01/11/sftp-chroot-jail-in-ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://emphaticnonsense.com/2010/01/11/sftp-chroot-jail-in-ubuntu/</link>
	<description>Forest Monsen is your host on a journey into technobabble and other emphatic nonsense.</description>
	<lastBuildDate>Mon, 19 Sep 2011 21:04:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: fourstar</title>
		<link>http://emphaticnonsense.com/2010/01/11/sftp-chroot-jail-in-ubuntu/#comment-90</link>
		<dc:creator><![CDATA[fourstar]]></dc:creator>
		<pubDate>Wed, 16 Mar 2011 22:13:09 +0000</pubDate>
		<guid isPermaLink="false">http://emphaticnonsense.com/?p=86#comment-90</guid>
		<description><![CDATA[Hi Jim -- did you already discover &lt;a href=&quot;http://shapeshed.com/journal/chroot_sftp_users_on_ubuntu_intrepid/&quot; rel=&quot;nofollow&quot;&gt;the ChrootDirectory&lt;/a&gt; configuration directive in newer versions of OpenSSH? If you have even a relatively recent version of Ubuntu, you&#039;ll be golden.]]></description>
		<content:encoded><![CDATA[<p>Hi Jim &#8212; did you already discover <a href="http://shapeshed.com/journal/chroot_sftp_users_on_ubuntu_intrepid/" rel="nofollow">the ChrootDirectory</a> configuration directive in newer versions of OpenSSH? If you have even a relatively recent version of Ubuntu, you&#8217;ll be golden.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim</title>
		<link>http://emphaticnonsense.com/2010/01/11/sftp-chroot-jail-in-ubuntu/#comment-89</link>
		<dc:creator><![CDATA[Jim]]></dc:creator>
		<pubDate>Sat, 05 Mar 2011 00:05:27 +0000</pubDate>
		<guid isPermaLink="false">http://emphaticnonsense.com/?p=86#comment-89</guid>
		<description><![CDATA[Sorry, I meant to type:  went to the /var/www/myaudiolisting/ folder to reset permissions back to webdev]]></description>
		<content:encoded><![CDATA[<p>Sorry, I meant to type:  went to the /var/www/myaudiolisting/ folder to reset permissions back to webdev</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim</title>
		<link>http://emphaticnonsense.com/2010/01/11/sftp-chroot-jail-in-ubuntu/#comment-88</link>
		<dc:creator><![CDATA[Jim]]></dc:creator>
		<pubDate>Sat, 05 Mar 2011 00:02:54 +0000</pubDate>
		<guid isPermaLink="false">http://emphaticnonsense.com/?p=86#comment-88</guid>
		<description><![CDATA[here is my exact steps:

gzip -dc /usr/share/doc/scponly/setup_chroot/setup_chroot.sh.gz &gt; /tmp/setup_chroot.sh
cp /usr/share/doc/scponly/setup_chroot/config.h /tmp
chmod +x /tmp/setup_chroot.sh
cd /tmp
sudo ./setup_chroot.sh

-e
sudo adduser webdev www-data
sudo find . \! -user root -exec chgrp www-data \{\} \;
sudo find . \! -user root -exec chmod g+w \{\} \;
cd /var/www/myaudiolisting/lib
sudo cp /lib/libnss_files* /var/www/myaudiolisting/lib

Then after this, I opened up another terminal window and did sudo nautilus and went to the /var/www/home/ folder and checked on the permissions and I changed it to webdev for user and webdev for group as it was set to root/root.]]></description>
		<content:encoded><![CDATA[<p>here is my exact steps:</p>
<p>gzip -dc /usr/share/doc/scponly/setup_chroot/setup_chroot.sh.gz &gt; /tmp/setup_chroot.sh<br />
cp /usr/share/doc/scponly/setup_chroot/config.h /tmp<br />
chmod +x /tmp/setup_chroot.sh<br />
cd /tmp<br />
sudo ./setup_chroot.sh</p>
<p>-e<br />
sudo adduser webdev www-data<br />
sudo find . \! -user root -exec chgrp www-data \{\} \;<br />
sudo find . \! -user root -exec chmod g+w \{\} \;<br />
cd /var/www/myaudiolisting/lib<br />
sudo cp /lib/libnss_files* /var/www/myaudiolisting/lib</p>
<p>Then after this, I opened up another terminal window and did sudo nautilus and went to the /var/www/home/ folder and checked on the permissions and I changed it to webdev for user and webdev for group as it was set to root/root.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim</title>
		<link>http://emphaticnonsense.com/2010/01/11/sftp-chroot-jail-in-ubuntu/#comment-87</link>
		<dc:creator><![CDATA[Jim]]></dc:creator>
		<pubDate>Sat, 05 Mar 2011 00:00:57 +0000</pubDate>
		<guid isPermaLink="false">http://emphaticnonsense.com/?p=86#comment-87</guid>
		<description><![CDATA[I did exactly as instructed here and even read all of the issues replies and everything seemed to have gone well.

After I created the account I noticed that the permissions for the folder I want the user to have access to was set to &#039;root&#039; so I changed it to the [new user] account and [new group].  After this was done, I am getting error when I ftp in with:  Connection closed by server with exitcode 1

I was told by someone that when I deleted the old Null account with the [user] to start over it revereted back to &#039;root&#039; and so it never created the [new user] or something to that efect.  Am I missing a step?]]></description>
		<content:encoded><![CDATA[<p>I did exactly as instructed here and even read all of the issues replies and everything seemed to have gone well.</p>
<p>After I created the account I noticed that the permissions for the folder I want the user to have access to was set to &#8216;root&#8217; so I changed it to the [new user] account and [new group].  After this was done, I am getting error when I ftp in with:  Connection closed by server with exitcode 1</p>
<p>I was told by someone that when I deleted the old Null account with the [user] to start over it revereted back to &#8216;root&#8217; and so it never created the [new user] or something to that efect.  Am I missing a step?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fourstar</title>
		<link>http://emphaticnonsense.com/2010/01/11/sftp-chroot-jail-in-ubuntu/#comment-82</link>
		<dc:creator><![CDATA[fourstar]]></dc:creator>
		<pubDate>Tue, 08 Feb 2011 22:58:05 +0000</pubDate>
		<guid isPermaLink="false">http://emphaticnonsense.com/?p=86#comment-82</guid>
		<description><![CDATA[Cool, thanks xplicit. I updated the instructions to reflect your experience.]]></description>
		<content:encoded><![CDATA[<p>Cool, thanks xplicit. I updated the instructions to reflect your experience.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: xplicit</title>
		<link>http://emphaticnonsense.com/2010/01/11/sftp-chroot-jail-in-ubuntu/#comment-81</link>
		<dc:creator><![CDATA[xplicit]]></dc:creator>
		<pubDate>Tue, 08 Feb 2011 08:16:24 +0000</pubDate>
		<guid isPermaLink="false">http://emphaticnonsense.com/?p=86#comment-81</guid>
		<description><![CDATA[Little fix:

In Ubuntu 10.04
instead of
sudo /tmp/setup_chroot.sh

you should use 
cd /tmp
sudo ./setup_chroot.sh

or you will get an error
&quot;your scponly build is not configured for chrooted operation.
please reconfigure as follows, then rebuild and reinstall&quot;

That was about Luke wrote above.]]></description>
		<content:encoded><![CDATA[<p>Little fix:</p>
<p>In Ubuntu 10.04<br />
instead of<br />
sudo /tmp/setup_chroot.sh</p>
<p>you should use<br />
cd /tmp<br />
sudo ./setup_chroot.sh</p>
<p>or you will get an error<br />
&#8220;your scponly build is not configured for chrooted operation.<br />
please reconfigure as follows, then rebuild and reinstall&#8221;</p>
<p>That was about Luke wrote above.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luke Pearce</title>
		<link>http://emphaticnonsense.com/2010/01/11/sftp-chroot-jail-in-ubuntu/#comment-48</link>
		<dc:creator><![CDATA[Luke Pearce]]></dc:creator>
		<pubDate>Mon, 06 Dec 2010 21:59:49 +0000</pubDate>
		<guid isPermaLink="false">http://emphaticnonsense.com/?p=86#comment-48</guid>
		<description><![CDATA[Just to add in Ubuntu 10.04 I still had connection issues until I copied the libnss_files into the individual scponly users lib directory:

[from the /home/scponly user directory]
cp /lib/libnss_files* ./lib

There&#039;s also some good info here:

http://ubuntuforums.org/showthread.php?t=451510

Like setting it up so sftp starts in the incoming directory so the user doesn&#039;t have the chroot directories cluttering up their space.]]></description>
		<content:encoded><![CDATA[<p>Just to add in Ubuntu 10.04 I still had connection issues until I copied the libnss_files into the individual scponly users lib directory:</p>
<p>[from the /home/scponly user directory]<br />
cp /lib/libnss_files* ./lib</p>
<p>There&#8217;s also some good info here:</p>
<p><a href="http://ubuntuforums.org/showthread.php?t=451510" rel="nofollow">http://ubuntuforums.org/showthread.php?t=451510</a></p>
<p>Like setting it up so sftp starts in the incoming directory so the user doesn&#8217;t have the chroot directories cluttering up their space.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fourstar</title>
		<link>http://emphaticnonsense.com/2010/01/11/sftp-chroot-jail-in-ubuntu/#comment-47</link>
		<dc:creator><![CDATA[fourstar]]></dc:creator>
		<pubDate>Mon, 06 Dec 2010 18:20:37 +0000</pubDate>
		<guid isPermaLink="false">http://emphaticnonsense.com/?p=86#comment-47</guid>
		<description><![CDATA[Thanks Luke -- I updated the post to reflect your experience, since it might be helpful for someone!

Forest]]></description>
		<content:encoded><![CDATA[<p>Thanks Luke &#8212; I updated the post to reflect your experience, since it might be helpful for someone!</p>
<p>Forest</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luke Pearce</title>
		<link>http://emphaticnonsense.com/2010/01/11/sftp-chroot-jail-in-ubuntu/#comment-45</link>
		<dc:creator><![CDATA[Luke Pearce]]></dc:creator>
		<pubDate>Mon, 06 Dec 2010 14:05:04 +0000</pubDate>
		<guid isPermaLink="false">http://emphaticnonsense.com/?p=86#comment-45</guid>
		<description><![CDATA[Thanks for this - really useful.

As a little note I found a couple of minors with the setup_chroot.sh:

1) setup_chroot.sh needed to be executable: chmod +x setup_chroot.sh

2) And it complained about not being a chroot setup unless you copied over the config.h found in the same directory: cp /usr/share/doc/scponly/setup_chroot/config.h /tmp

Cheers
Luke]]></description>
		<content:encoded><![CDATA[<p>Thanks for this &#8211; really useful.</p>
<p>As a little note I found a couple of minors with the setup_chroot.sh:</p>
<p>1) setup_chroot.sh needed to be executable: chmod +x setup_chroot.sh</p>
<p>2) And it complained about not being a chroot setup unless you copied over the config.h found in the same directory: cp /usr/share/doc/scponly/setup_chroot/config.h /tmp</p>
<p>Cheers<br />
Luke</p>
]]></content:encoded>
	</item>
</channel>
</rss>

