Creating a new ftp account for an existing domain?


#1

is it possible to create a new ftp account for an existing domain?

I have a website, and one directory of that is an upload area - i want to create an ftp account to give out to people so they can only access and see this one particular directory of my site

Is this possible on dreamhost? I cant seem to work it out in my control panel…


#2

It sounds like a remap is most desirable:
http://wiki.dreamhost.com/KB_/Account_Control_Panel/Domains::_Remap_Sub-Dir

Or you can do it the slightly harder way:
http://wiki.dreamhost.com/Unix_Groups

-Scott


#3

[quote]I have a website, and one directory of that is an upload area - i want to create an ftp account to give out to people so they can only access and see this one particular directory of my site

Is this possible on dreamhost? I cant seem to work it out in my control panel…[/quote]
To clairfy in addition to what Scott says…

No, it is not possible on DreamHost. You don’t get to control how the FTP program is ocnfigured. All FTP users have their own “home” directory where they get to store their own files. The home directory is not meant to, and should not be, web-accessible. If the user is using FTP, the FTP server keeps you inside the home directory (ie / = /home/username) but if the user uses SCP/SFTP/SSH they are not restricted to the home directory.

When visting a web site, the url-path of the URL will be checked if there is an alias to a directory on the filesystem. If there is no alias it is mapped to the document root, or “web directory” as DreamHost calls it in the Manage Domains panel. In the DreamHost Web Panel, the alias is called “Remap Sub-dir” instead of alias.

Thus you can alias a url-path to a sub directory of a different user than that specified for the web directory as Scott mentions. It doesn’t allow for sharing management of the files though.

:cool: openvein.org -//-


#4

Remap a directory in your domain.com folder (eg. www.domain.com/uploads):

  • Create a new ftp user (eg. [color=#00CC00]ftpuser[/color]) and share the login info with those who require it.

  • Login to [color=#00CC00]ftpuser[/color]'s account and create a new folder called uploads.

  • Go into Panel:

[color=#0000CC]Domains > Remap Sub-Directory[/color]

Fully-hosted URL to remap:www.mydomain.com/uploads

New path on server: /home/[color=#00CC00]ftpuser[/color]/uploads

Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost