One User Per Domain Policy

From DreamHost
Jump to: navigation, search

Overview

Each domain you host at DreamHost can only be owned by a single FTP/SFTP/SHELL user. This wiki page explains how this is configured on the server and also how to switch a user to use a different domain.

How users and domains are assigned to each other

You can create a website user in your panel and allow that single user to access multiple domains. The following image illustrates this:

1user 00.png

This configuration is beneficial for resellers and web developers that manage multiple domains.

However, the opposite is not possible as you cannot assign multiple users to a single domain:

1user 03.png

When you create a second website user, that new user is only able to view their own home directory and the files/folders within it. They will not be able to access the website files under a different user.

1user 01.png

Changing the website user to which a domain is assigned

You can change the user a domain is assigned to at any time.

  1. Navigate to the (Panel > ‘Domains’ > ‘Manage Domains’) page.
  2. Click the ‘Edit’ link to the right of the domain under the ‘Web Hosting’ column.
  3. Scroll down in the page that follows and see the “Users, Files and Paths” section as shown in the following:
    01 one user domain.fw.png
  4. Select another user from the dropdown menu. You’ll have the option to moves all files at this time.
  5. Scroll down and click the Change settings button to save your changes.

This changes the user with which the domain is currently associated.

Remapping a subdirectory

DreamHost offers another solution to allow other users to access specific folders under another user. Visit the Remap Sub-Dir article for further details.

The setup for this is illustrated in the following image:

1user 02.png

This configuration takes the folder in the domain you specify and creates a "Symlink" to the home directory of the website user you specify. The only downside to this is that the website user will not be able to access the folder via FTP as it is in reality in the second user account’s home directory.

Naming your website user

When creating a new website user that is used by multiple people, it’s recommended to give it a general name such as ‘Domain_Admin’.

Example-

You wish to create a User for your companies website, and there will be multiple people using this FTP user login.

  • You wouldn't want to name the User Account after you, such as Bob_Smith
  • Instead, use a name that is more domain/company-centric, such as Domainname_Admin

See also