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!


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?


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 “” and want them restricted to something like /home/abc/public_html/x/y/z/bob … how do I do that?


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?


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,, has a username of abc, and an ftp user of bob would generate a ftp username of I need to have them in the format (ie - Is that possible?

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.

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”.