Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

SFTP account access to public_html

Discussion in 'General Discussion' started by toplisek, Mar 8, 2017.

Tags:
  1. toplisek

    toplisek Well-Known Member

    Joined:
    Jan 7, 2010
    Messages:
    128
    Likes Received:
    7
    Trophy Points:
    68
    Issue is how to connect in this case just to public_html as there is any password / username or path to particular folder. I like just access to public not the whole account.


    Need help.
     
  2. Jcats

    Jcats Well-Known Member

    Joined:
    May 25, 2011
    Messages:
    718
    Likes Received:
    122
    Trophy Points:
    168
    Location:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
    Hello,

    This isn't possible out of the box with cPanel as the only user that can SFTP is the cPanel user itself which will have full access to the entire account including the home directory.

    If you require SFTP, then you would need to add a new linux user but then you would run into issues with file ownership.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. toplisek

    toplisek Well-Known Member

    Joined:
    Jan 7, 2010
    Messages:
    128
    Likes Received:
    7
    Trophy Points:
    68
    How to solve than securely access to public_html?
    Can be disabled configuration settings for FTP access but only particular accounts can have FTP accounts?
     
  4. Jcats

    Jcats Well-Known Member

    Joined:
    May 25, 2011
    Messages:
    718
    Likes Received:
    122
    Trophy Points:
    168
    Location:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
    Securely access them in what way, are you referring to encryption or limiting the users access?

    If you want to force encryption, you can do so for FTP as well using FTPS

    In WHM go to

    • Home »
    • Service Configuration »
    • FTP Server Configuration
    and set "TLS Encryption Support" to Required.

    If you are referring to limiting an FTP user access to a specific directory, like public_html, then you can create them an FTP in cPanel as well as specify the home directory so if you do public_html they will not be able to browse the home directory of the account.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #4 Jcats, Mar 9, 2017
    Last edited by a moderator: Mar 9, 2017
    cPanelMichael likes this.
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,367
    Likes Received:
    1,856
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    Jcats and Vasanthjan like this.
  6. toplisek

    toplisek Well-Known Member

    Joined:
    Jan 7, 2010
    Messages:
    128
    Likes Received:
    7
    Trophy Points:
    68
    Thank you for all replies.
     
    cPanelMichael likes this.
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice