Lock FTP-user in folder

7 posts / 0 new
Last post
#1 Wed, 03/25/2009 - 08:47
ENC_Timmy

Lock FTP-user in folder

Hi,

I'm using Virtualmin 3.65 to host several websites. Everything's well, apart from one thing: I can't lock a user to a folder inside the server's public_html-folder. Virtualmin does make a home-folder for the new user, but this home is not located in /public_html/.

So what I'm looking for is a user with limited FTP-access. He shouldn't be able to go below /public_html/userhome.

Am I missing something, or is this not possible?

Thanks in advance!

Wed, 03/25/2009 - 09:52
andreychek

You just have to make sure the FTP users home directory is setup to be inside the public_html folder.

The easiest way to do that is to go into Edit Mail and FTP users, and create the user using "Add a website FTP access user".

That also assumes that in Limits and Validation -> FTP Directory Restrictions, that the restrictions are enabled to keep users in their home directories.
-Eric

Thu, 03/26/2009 - 06:30 (Reply to #2)
ENC_Timmy

Thanks for your help, I've been in contact with the hosting company. I now have the option to set the homedir for extra users, just what I need.

Thu, 03/26/2009 - 01:17
ENC_Timmy

Thanks for your quick response, though your solution locks the user in the public_html folder. I'm looking for a way to keep the user in public_html/user.

<div class='quote'>
That also assumes that in Limits and Validation -&gt; FTP Directory Restrictions, that the restrictions are enabled to keep users in their home directories.
</div>

Where can I find the Limits and Validation -&gt; FTP Directory Restrictions -page? I've been going trough Virtualmin over and over again, but I can't find it..

Webmin/Virtualmin is installed on an external server, maintained by a hosting company. Could I be limited in my actions, even though I have Administration-access?

Thanks again!

Thu, 03/26/2009 - 01:22 (Reply to #4)
ENC_Timmy

Edit doesn't seem to work, so I'll just reply:

I don't have admin-access, Virtualmin says Reseller when I'm logged in. That could be why I can't find the right settings, right?

Thu, 03/26/2009 - 04:39 (Reply to #5)
andreychek

Yeah, sorry, editing is broken -- Joe's hard at work to take care of that with through a new Drupal site :-)

The the solution I mentioned should lock the user within whatever their home directory is set to -- FTP doesn't have any concept of &quot;public_html&quot;.

And yeah, resellers have limited access, that would explain why you aren't seeing that and other options.
-Eric

Thu, 08/12/2010 - 09:08
k.roundtree

On Virtualmin (v3.79) if you go under the Limits and Validation menu on the left and go to FTP Directory Restrictions there is a checkbox "Active?", you'll want to check that and save. I'm not sure why this isn't set as the default. Hope that helps.

Topic locked