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.

Symlink Protection

Discussion in 'EasyApache' started by peter123, Nov 20, 2016.

  1. peter123

    peter123 Member

    Joined:
    Apr 14, 2008
    Messages:
    12
    Likes Received:
    1
    Trophy Points:
    51
    Hi All,

    I have just installed cPanel on a CentOS 7 server, and enabled mod_ruid2 through EA4. I also disabled all shell access for all users. May I know what else I need to do for symlink protection?

    Thanks!
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    15,768
    Likes Received:
    313
    Trophy Points:
    433
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  3. peter123

    peter123 Member

    Joined:
    Apr 14, 2008
    Messages:
    12
    Likes Received:
    1
    Trophy Points:
    51
    Thanks for your reply!
    For the filesystem-level solution, can I use "mod_ruid2 + noshell" instead of "mod_ruid2 + jailshell"? My customers do not need shell access so I prefer to disable it if disabling it give same level of protection.
     
  4. 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
    Hello,

    You may also find this document helpful:

    Symlink Race Condition Protection - EasyApache 4 - cPanel Documentation

    I recommend using one of the kernel-level solutions if possible.

    Otherwise, note that enabling EXPERIMENTAL: Jailshell Virtual Hosts using mod_ruid2 and cPanel jailshell in WHM's Tweak Settings interface (Home >> Server Configuration >> Tweak Settings) does not actually enable jailed shell access on the accounts. You can use this option and still disable shell access on the accounts.

    Thank you.
     
Loading...

Share This Page