restrict access to cpanel folder

tecwithquestion

Well-Known Member
Oct 20, 2014
65
2
58
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 ?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
I still wanted to block user level read access to /usr/local/cpanel folder
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.