FTP users and public_html

I need to provide a support person ftp access to the public_html area of the domain. The user is created in /home//homes as their home directory. I do not want to have their home directory within the public_html area (with associated Maildir, etc.).

How can I set this up so that I can give them access to the public_html directory without putting their home in a subdirectory of public_html?

I've done this via 'mount' for a couple of things, but think there should be a better way without my having to give away the credentials for the main domain admin.

thanks, tony

Status: 
Closed (fixed)

Comments

The recommended method is to create a 'Website FTP' user, whose home directory is typically public_html. This user would only be used for FTP access, and doesn't get email and so won't have a Maildir.

Alternate solutions could perhaps be hacked up using ProFTPd directory restrictions, such as limiting a user to the domain's home directory. But they aren't as well supported in Virtualmin..

The choices in VM for the user are "Email only" and "Email and FTP". Where do I find the option to make the user a "Website FTP" user in VM?

If you go into Edit Mail and FTP users, click "Add a website FTP access user." way over on the right-hand side of the screen.

Hmm, well that's nicely hidden! Shouldn't it just be one of the "types" in the "Other User Permissions" area? But now that I know....

It's a separate link, as it changes what options appear on the user creation form.

So does that allow you to setup the kind of login you are looking for?

Yes, that seems to have done the trick. Much easier and better. I just have to remember to enable the DB access needed whereas when setting up the other type of FTP user, DB access is enabled by default (I think).

Automatically closed -- issue fixed for 2 weeks with no activity.