<br><br><div class="gmail_quote">On 10 August 2010 03:28, Daniel Case <span dir="ltr">&lt;<a href="mailto:danielcase10@googlemail.com">danielcase10@googlemail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I just set it in the config file:<div>It told me to uncomment the line which said something along the lines of:</div><div><br></div><div>DocumentRoot: ~</div><div><br></div><div>If i set it to an actual directory it will be fine, for example: /var/www</div>


<div>But then how do i set diff users diff directories?</div><div>Daniel<div><div></div><div class="h5"><br><br><div class="gmail_quote">On 9 August 2010 23:54, Simon Greenwood <span dir="ltr">&lt;<a href="mailto:sfgreenwood@gmail.com" target="_blank">sfgreenwood@gmail.com</a>&gt;</span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p>That sounds really familiar but I haven&#39;t done anything with ProFTPD for a long time. How do you set up the chroot?</p>




<p>S</p><font color="#888888">
</font><p></p><blockquote type="cite"><div><div></div><div>On 9 Aug 2010 23:05, &quot;Daniel Case&quot; &lt;<a href="mailto:danielcase10@googlemail.com" target="_blank">danielcase10@googlemail.com</a>&gt; wrote:<br>
<br><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse"><span style="font-family:Verdana, Arial, Tahoma;font-size:12px">Hi There guys, I have a little server that I use for testing purposes and im having some problems with FTP. <br>






I am using Ubuntu 10.04 and proftpd<br><br>When I do not chroot local users it will go to there home directory when they log in (/home/ftp for my FTP user) but the problem with that is they can get out quite easily so i tried to jail them in the chroot.<br>






<br>For some reason whenever I set that it puts the user straight into the root directory and doesn&#39;t let them into anything. I was expecting it to just chroot the user in /home/ftp</span><div><span style="font-family:Verdana, Arial, Tahoma;font-size:12px"><br>






</span></div><div><span style="font-family:Verdana, Arial, Tahoma;font-size:12px">I did put this on the Ubuntu Forum but it appears no-one could answer, i bumped it twice after it dropped from the fifth page...</span></div>






</span>
<br></div></div>--</blockquote></blockquote></div></div></div></div></blockquote><div><br></div><div>Ah, found it. You need to set the execute bit on the directory that you chroot a user to. That&#39;s a U*ix thing rather than a proftpd thing. Here&#39;s[1]  a guide to the old fashioned way to set it up.</div>
<div><br></div><div>1. <a href="http://aplawrence.com/Bofcusm/2512.html">http://aplawrence.com/Bofcusm/2512.html</a></div></div><div><br></div>s/<br>-- <br>My CV: <a href="http://bit.ly/sfgreenwood_cv">http://bit.ly/sfgreenwood_cv</a><br>
Linkedin: <a href="http://www.linkedin.com/in/simonfgreenwood">http://www.linkedin.com/in/simonfgreenwood</a><br>Twitter: @sfgreenwood<br>