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.

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.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page