Submitted by tbirnseth on Wed, 07/01/2009 - 12:32
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
Submitted by JamieCameron on Wed, 07/01/2009 - 14:54 Comment #1
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..
Submitted by tbirnseth on Wed, 07/01/2009 - 15:23 Comment #2
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?
Submitted by andreychek on Wed, 07/01/2009 - 15:26 Comment #3
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.
Submitted by tbirnseth on Wed, 07/01/2009 - 15:45 Comment #4
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....
Submitted by JamieCameron on Wed, 07/01/2009 - 15:53 Comment #5
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?
Submitted by tbirnseth on Wed, 07/01/2009 - 15:56 Comment #6
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).
Submitted by JamieCameron on Wed, 07/01/2009 - 16:03 Comment #7
Submitted by Issues on Wed, 07/15/2009 - 18:19 Comment #8
Automatically closed -- issue fixed for 2 weeks with no activity.