Restrict FTP user to a specific dir?

7 posts / 0 new
Last post
#1 Tue, 04/13/2010 - 08:24
AC-Jay

Restrict FTP user to a specific dir?

Hi folks. New to the *min scene and I'm having a problem I hope you can help with.

I'm trying to create a new FTP user and change the default directory they have access to, but cannot figure out how. Can someone point me in the right direction, please?

Thanks in advance! Jay

Tue, 04/13/2010 - 09:48
andreychek

Howdy,

I have a suspicion what you're after is a "Website FTP Access User" -- a user who has access to a given portion of the website, and can upload into some (but not necessarily all) parts of the website.

To do that, you can go into Edit Mail and FTP users, and choose "Add a website FTP access user".

Also, you can lock users into their home directories, and not let them browse around the server, by going into Limits and Validation -> FTP Directory Restrictions.

Will that do what you're after?

-Eric

Tue, 04/13/2010 - 09:53
AC-Jay

Hi Eric -

Yes, this is exactly what I want to do, but I am currently unable to choose the directory I want to restrict the user to. How can I restrict a user to a directory other than whatever the server default is?

For example: If I add a user "bob" under domain "abc.com" and want them restricted to something like /home/abc/public_html/x/y/z/bob ... how do I do that?

Tue, 04/13/2010 - 09:57
andreychek

Howdy,

After selecting "Add a website FTP access user", go to the section named "Quota and home directory settings".

In there, you'll see an option named "Home directory". Next to that is a text box labeled "Website subdirectory -- you can use that to specify the directory you want to use as the users homedir.

Are you seeing that option, or isn't that showing up for you?

-Eric

Tue, 04/13/2010 - 10:00 (Reply to #4)
AC-Jay

I believe that option is there when I am logged in as the root user, but it is not there when I am logged in under the domain user.

Tue, 04/13/2010 - 09:59
AC-Jay

Something else I just now noticed. When creating a new user, it appears to create an FTP username of user.domainuser (that is an account, abc.com, has a username of abc, and an ftp user of bob would generate a ftp username of bob.abc). I need to have them in the format user@domain.com (ie - bob@abc.com). Is that possible?

Tue, 04/13/2010 - 10:35
andreychek

You can set the format for mail users in System Settings -> Server Template -> Default -> Mail for Domain.

To allow Virtual Server admins to set the homedir for FTP users, make sure that in System Settings -> Module Config -> Server Administrator Permissions, "Can select home directories for users" is set to "Yes".

-Eric

Topic locked