The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

One ftp account + multiple subdomians

Discussion in 'General Discussion' started by gonz0, Dec 4, 2007.

  1. gonz0

    gonz0 Member

    Jul 2, 2004
    Likes Received:
    Trophy Points:
    iI looked around the forum and could't find:

    is this possible to create one FTP account for multiple subdomains ?
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Nov 29, 2006
    Likes Received:
    Trophy Points:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    If you're a little creative and using the X3 theme, you can do this.

    First, note that a FTP account can only have access to a single directory (and anything under that directory). Now, if you don't want the FTP account to be able to access the entirety of your account, you should place the subdomains in the same folder at time of creation. A convention I personally follow is placing my subdomains in ~/subdomains/subdomainname where subdomainname is the name of the subdomain. This way I can grant access to ~/subdomains, so the account has access to all of the subdomains, but not the main domain.

    Of course, you can customize this to fit your situation. Note, you cannot grant FTP access to directories that are not contained within one another. For example, granting access to ~/subdomains will also grant access to ~/subdomains/mySubDomain but you cannot grant access to ~/mySubDomain and ~/myOtherSubDomain.

Share This Page