Setting up FTP users


#1

I’m new to Dreamhost but already have a lot of projects to set up and test. The most immediate involves a customer who needs to have several users set up with FTP access to get to files that he’ll post. He will, of course, need to be able to FTP in and put the files in the users’ folders. The users wil need to be able to FTP in and get their files, but nobody else’s.

Is there information on how to set this kind of thing up?

Thanks!


#2

This has been discussed before:
http://discussion.dreamhost.com/showthreaded.pl?Cat=&Board=forum_troubleshooting&Number=40241&page=&view=&sb=&o=&vc=1#Post40241 (Thanks, Raz!)

Sure wish I knew how to make links work in this forum. But here’s a cut and paste:

That is not possible on DreamHost. For some reason they absolutely refuse to follow the standard method of allowing additional users to only subdirectories. Instead, you have to use this round-about and extremely buggy way. Anyways, create a new ftp user (eg. userone). Then you have to create a subdomain instead of the subdirectory. So if you wanted mydomain.com/userone, then create the subdomain userone.mydomain.com with the ftp user set to the one you created (userone). Then you must use the remap Subdirectory feature (under Domains in the navigation) to remap the sub-directory (mydomain.com/userone) to the subdomain (userone.mydomain.com). For FTP, the new person connects to the subdomain using their user/pass and must put all their files in the directory (have to create it) that you choose when you created the subdomain. (eg. home/userone/userone.mydomain.com/) This is pretty ridiculous, I know, but that’s how it has to be done on DreamHost.

By the way, you cannot use your main (admin) ftp account to connect to the subdirectory. Only the other ftp user can do that. Also, there seems to be some serious php problems with the subdomains/remapped sub-directories because of the php can only be run as cgi and this causes some ownership issues. I talked to DH about it but they said that it will likely not be fixed for a few months because of other issues they must attend to.

-Scott


#3

It’s all explained in the FAQ :slight_smile:

Basically, you use the [ url ] and [ /url ] tags, without the spaces I have added.

Mark


Save [color=#CC0000]$50[/color] on DreamHost hosting using promo code [color=#CC0000]SAVEMONEY[/color] ( Click for promo code details )