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.

restrict access to cpanel folder

Discussion in 'Security' started by tecwithquestion, Jul 20, 2015.

  1. tecwithquestion

    tecwithquestion Active Member

    Joined:
    Oct 20, 2014
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Hello

    While connect server via ssh from user login I can easily access complete /usr/local/cpanel folder. As I can see current permission set to 711 and permission is root:wheel.

    How can I block user level access to /usr/local/cpanel folder ?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    This is normal due to the nature of how the filesystem works on Linux. Note that while you may be able to view some directories outside of /home, all account-specific data should be restricted (e.g. no valuable data is available to end-users).

    Thank you.
     
  3. tecwithquestion

    tecwithquestion Active Member

    Joined:
    Oct 20, 2014
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    I am using cloudlinux and cagefs so /home is safe

    I still wanted to block user level read access to /usr/local/cpanel folder
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    You will need to disable shell access completely if you want to prevent users from having access to browse to that directory. It's not possible to make that change due to the nature of how shell access works with cPanel on the Linux environment.

    Thank you.
     
Loading...

Share This Page