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.

Change of document root of FTP Server

Discussion in 'General Discussion' started by musti19, Sep 23, 2013.

  1. musti19

    musti19 Well-Known Member

    Joined:
    Jan 20, 2013
    Messages:
    103
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Hello,
    in proftpd i have the possbility to change the document root dir
    to /public_html
    But then i have ftp login problems with the additional accounts.

    Is there a solution for this or alternative with pure-ftp ?

    thank you
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,472
    Likes Received:
    201
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Are you speaking of an addon FTP account? These docs might be useful:
    Add an FTP Account - cPanel Documentation

    Each FTP account needs to login with the full username. you @ yourdomain.com for example. Are you wanting to setup multiple Addon FTP accounts and have them share the same directory?
     
  3. musti19

    musti19 Well-Known Member

    Joined:
    Jan 20, 2013
    Messages:
    103
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    No, in cPanel you can create additional ftp-accounts:
    cPanel->ftp-accounts

    Because some clients confusing the upload folder, i set the document root to pubic html:
    in /etc/proftpd.conf:
    from
    DefaultRoot ~ !wheel
    to
    DefaultRoot ~/public_html

    This works, but then the additional created ftp accounts, dont work.
    (in other control panels, no problem!)

    So think this is a bug in cPanel or there are other solutions?
    Is its possible to realize with pureftpd?
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,472
    Likes Received:
    201
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    The main cPanel user has no need to create an FTP account, he already has one by default. He logs in with his cPanel username as the login, not the full name like an Addon FTP account. Addon FTP accounts should be given their own directory.
     
  5. musti19

    musti19 Well-Known Member

    Joined:
    Jan 20, 2013
    Messages:
    103
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    additional ftp is useful, if you want to grant only to ftp folder, but not to cpanel (Email-Account etc.)

    And also a additional ftp account that is set to subfolder , dont work...
    (if in the configuration file in proftp is set to /public_html)
    otherwise it works.
     
  6. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,472
    Likes Received:
    201
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Right. There really should be no need to edit that config file for normal user operation, IMO.
     
  7. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    When you create an additional FTP user in cPanel & WHM, the home directory, or document root, of that user is set at the time you create that user. Changing the service configuration (/etc/proftpd.conf in your case) to have a different document root is inadvisable at this time.

    When changing the service configuration, you'll also need to update the configuration for every single FTP account to behave properly.
     
Loading...

Share This Page