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!

FTP settings - How to disable/hide all directories and keep only public_html?

Discussion in 'General Discussion' started by Galanthus, Nov 9, 2013.

  1. Galanthus

    Galanthus Well-Known Member

    Joined:
    Nov 8, 2013
    Messages:
    87
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Hi Guys,

    How can i set this up. I am trying to configure my FTP that way that when i create an domain that the user who connect with FTP will only see public_html? And how to do this for cPanel either?

    Currently i can remove all files.. and directories..

    I want to block and disable directories but only show /root/ directory of user.

    How to set this for ALL users?

    Thanks guys!
     
  2. ravi9

    ravi9 Well-Known Member

    Joined:
    Oct 31, 2013
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    India
    cPanel Access Level:
    Website Owner
    I don't think you can / should do this. It may break proper functioning of cPanel.
    These are system directories owned by the user.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,749
    Likes Received:
    1,886
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    You should not delete the files/directories above public_html for a cPanel account. These files are required and will result in the account failing to function properly if deleted. Instead, you could create a new FTP account via cPanel and assign it a specific directory it has access to.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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