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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    67
    Likes Received:
    2
    Trophy Points:
    58
    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:
    599
    Likes Received:
    92
    Trophy Points:
    153
    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.
     
  3. toplisek

    toplisek Well-Known Member

    Joined:
    Jan 7, 2010
    Messages:
    67
    Likes Received:
    2
    Trophy Points:
    58
    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:
    599
    Likes Received:
    92
    Trophy Points:
    153
    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.
     
    #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:
    38,658
    Likes Received:
    1,427
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Jcats and Vasanthjan like this.
  6. toplisek

    toplisek Well-Known Member

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

Share This Page