Assign a folder under my domain to another FTP user


#1

I’m trying to assign a folder under my domain to another FTP user in my account.

First, this link IS NOT HELPFUL:
http://wiki.dreamhost.com/I_dont_want_to_give_a_user_access_to_all_of_my_domains

Also, the link above actually says the Remap Sub-Dir feature “allows you to assign ownership of a folder inside a domain directory to [another user]”… when you follow this link to this “remap sub-dir” page, it does NOT… I repeat, does NOT show you how to do this.

Please help!

Here’s a complete use-case for what I’m trying to do:

I want my site to be hosted at the normal default DreamHost location:
/matthaas.net

I want to create an FTP user that can use this criteria within an FTP application:
HOST:ftp.matthaas.net

USER NAME:(Specific Name that I assign)

PASS:(Specific Password that I assign)

Now… here’s the important part… these credentials should place the FTP user into a DIFFERENT directory. Perhaps something like this:
/matthaas.net/ftpuser9
This new FTP user should not have access to the root level of “/matthaas.net” but rather, a different “walled off” directory, like:
/matthaas.net/ftpuser9
This could be a directory inside the matthaas.net site or it could be some other location. However, the log-in criteria MUST be like the above “host/user/pass” example and the folder that this FTP user has access to MUST not be the publicly visible root level of the matthaas.net site.

Is this possible?

If so, what specific steps are needed to do this. Again, the two pages shown below DO NOT provide all the information. They do say it’s possible but the solution is missing from these pages:
http://wiki.dreamhost.com/I_dont_want_to_give_a_user_access_to_all_of_my_domains

http://wiki.dreamhost.com/index.php/KB_/Account_Control_Panel/Domains::_Remap_Sub-Dir

Any help you can provide would be greatly appreciated.


#2

The problem is that in order to have access to a subdirectory, you need access to the parent directory. For example, your domain may be hosted in /home/matthew999/matthas.net. While you may log into /home/matthew999, you can also change directory into /home, and also into /

Remap sub-dir is the easiest, but apparently unwanted, way to do this. A similar approach would be to give FTP users their own subdomain.

This wiki entry mentions using WebDAV to jump straight into a subdirectory, but I’ve not tried this:
http://wiki.dreamhost.com/index.php/KB_/Account_Control_Panel/Users::_Users

Some experimenting with Groups and symlinks might give you a similar result:


but again you run into needing some access to the parent directory. Make sure you read the section on Enhanced Security.