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.

Configure FTP Directory Access

Discussion in 'General Discussion' started by matthewtbaker, Feb 15, 2013.

  1. matthewtbaker

    matthewtbaker Registered

    Joined:
    Feb 15, 2013
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi,

    I have recently configured my new WHM 'VPS optimised 3' and am trying to figure out how to specify which directory an accounts ftp connection defaults to.

    Currently when an account user ftp's into their root they are automatically taken to the 'public_html' directory and are unable to go a level up to their home directory. However when browsing using cPanel File Manager they can access the /home directory.

    I am using Pure-FTPD.

    Question: How do I configure the default directory to be /home instead of /home/public_html and to allow users go a level up from /public_html to /home?

    Thank you!
    Matt
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,468
    Likes Received:
    196
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    If I understand you correctly, what you're looking for should already be the default.
     
  3. matthewtbaker

    matthewtbaker Registered

    Joined:
    Feb 15, 2013
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Yes that's what I imagined/read elsewhere. However unfortunately it appears to be performing differently. Any ideas how to configure it so this is what actually occurs?
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,468
    Likes Received:
    196
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Is this happening on all accounts?
    Are we talking about the cPanel user account or an addon FTP account?
    What FTP client is being used?
     
  5. matthewtbaker

    matthewtbaker Registered

    Joined:
    Feb 15, 2013
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Thanks Infopro, good questions!

    I thought it was, but it turns out it is only affecting additional FTP accounts added through cPanel. The account holder is able to view the entire folder structure within their root, however any other FTP account holders added cannot go above 'public_html'.

    I guess this would be an addon FTP user account as the users are being created under the 'Add FTP Account' option through cPanel.

    FileZilla 3.5.3


    I'm starting to think that perhaps additional FTP accounts cannot view the root, which would be a pain. Is that the case?

    Many thanks.

    - - - Updated - - -

    I continued my hunt and found http://support.hostgator.com/articles/how-to-create-an-ftp-account-in-cpanel. This site instructed to insert a single '/' into the directory field and the root would then be enabled.

    Thank you for helping me out. Your initial questions got me thinking down the right track.
     
  6. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,468
    Likes Received:
    196
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Yes. Addon FTP users are restricted to the directory you provide them with.

    IIRC, the way around that was, instead of leaving the default path that's auto filled on addon FTP account creation, add a dot instead.

    So on that addon FTP account page where you see: Directory: /home/username/ __________

    Add one of these: .

    Please give this a go and post back if you don't mind. :)
     
Loading...

Share This Page