Is it possible? FTP question

Is it possible? FTP question

Posted by: knight_47
Posted on: 2007-03-14 01:33:00

Hello, I am wondering if it is possible to create a subdomain for a user, for example USERNAME.site.com, and have USERNAME FTP access to that subdomain, where he can upload what he wants, of course with a limit in space.

I've been experimenting and created an extra ftp user, other than my own, and I noticed when you login with this: ftp://USERNAME:PASSWORD@ftp.site.com and you upload a file there, you can't hot link to that file, it just gives the url ftp://ftp.site.com/test.jpg. Does anyone even know where these files are hosted???

So my question, I'm just wondering if I can setup a subdomain so that the user can FTP anything he wants into it, for example, say the user uploads a picture, he can access it through USERNAME.site.com/picture.jpg

Thanks!

Re: Is it possible? FTP question

Posted by: Raz2133
Posted on: 2007-03-14 01:51:00

In reply to:

Does anyone even know where these files are hosted???


They will be in the new user's home-directory. At DreamHost, each user you create is a real Unix machine user, with their own home-directory. When you log-in via FTP, you will see the home directory of the user you used to log-in.

In reply to:

I'm just wondering if I can setup a subdomain so that the user can FTP anything he wants into it, for example, say the user uploads a picture, he can access it through USERNAME.site.com/picture.jpg


Yes, simply specify your new user as the "FTP user / CGI-runs-as user:" when adding the sub-domain to the hosting system via the panel at Domains -> Manage Domains -> Add New Domain / Sub-Domain. This should create a new web-directory in the new user's home directory, by default this will have the same name as the sub-domain.

Mark

Re: Is it possible? FTP question

Posted by: Shonky
Posted on: 2007-03-14 01:57:00

You may have done this already but if you haven't you'll have to add the sub domain under Domains->Manage Domains, this will make the directory web accessible.

Now you will have to explain to your users to link to the files they will need to use http://username.site.com/filename

Dreamhost don't offer anonymous FTP access unless you purchase a unique IP address for the domain you wish to allow FTP access too.

Re: Is it possible? FTP question

Posted by: knight_47
Posted on: 2007-03-14 02:10:00

Hello Raz & Shonky, thanks for the replies.

I've created a subdomain, username.site.com, I've given the user FTP privilege when setting up the subdomain. Now when I login with the test user, I only see 2 folders, logs, and maildir, I have uploaded an index.html file just to see if username.site.com works, but it when I go to that URL I get a "Server not found" error, does it take time for the DNS to setup everything up??

Also, when I create a subdomain, should I see it when I log in with my admin FTP account??


Re: Is it possible? FTP question

Posted by: Raz2133
Posted on: 2007-03-14 02:16:00

In reply to:

I've given the user FTP privilege when setting up the subdomain. Now when I login with the test user, I only see 2 folders, logs, and maildir


Are you sure you specified the new user as the "FTP user / CGI-runs-as user:" when you added the domain? If you did, you should see the web-directory for the sub-domain in that users home-directory, as well as the logs and maildir directories. As I said, this web-directory will by default have the same name as the sub-domain (ie: username.site.com), this is where the publicly accessible site files for the sub-domain must be uploaded to.

In reply to:

does it take time for the DNS to setup everything up??


It does take some time for a sub-domain to become fully usable, but this is generally shorter than the time taken for a full domain.

In reply to:

when I create a subdomain, should I see it when I log in with my admin FTP account??


No, unless you specified the admin user as the "FTP user / CGI-runs-as user:" when adding the sub-domain.

Mark

Re: Is it possible? FTP question

Posted by: knight_47
Posted on: 2007-03-14 10:53:00

thanks everyone! I think I got it!! :)

Re: Is it possible? FTP question

Posted by: Raz2133
Posted on: 2007-03-14 19:12:00

In reply to:

thanks everyone! I think I got it!! :)


No problem, I am glad you have it under control now. smile

The DreamHost way of doing things can seem a little complex, especially if you are coming from another host that does things differently. However, once you realize that the users that you create are full Unix machine users, the same as your initial DreamHost-created 'admin' user, with their own home-directories etc, you will find the DreamHost way extremely versatile.

Good luck.

Mark

Tags: subdomainftp accessi am wonderinghot linkuploads