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.

Preventing users viewing system information

Discussion in 'Security' started by Chris H, May 5, 2017.

  1. Chris H

    Chris H Member

    Joined:
    May 5, 2017
    Messages:
    6
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    London
    cPanel Access Level:
    DataCenter Provider
    Hey everyone,

    We're running CloudLinux 7.3 and wondered if there was a way of preventing users from being able to see the server capacity? We're not bothered about RAM or CPU - just HD space.

    Basically we have a certain account that allows 1Gb of space and we put 200 accounts on each server - making sure /home obviously has over 200Gb (sometimes it might only be 300-400Gb to allow for emergencies, etc - but we don't oversell) - Anyway, a few users have been running the odd script (we don't allow SSH access) that has shown the filesystem size - is there something that allows us to hide it? I was thinking of a certain flag on /home - but don't want to break any scripts :)

    Thanks!

    Ch.
     
  2. 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,

    Is this information obtained through a PHP script? If so, you could add "disk_free_space" and "disk_total_space" to the disable_functions line in your PHP configuration file via "WHM >> MultiPHP INI Editor >> Editor Mode".

    Thank you.
     
    Chris H likes this.
  3. Chris H

    Chris H Member

    Joined:
    May 5, 2017
    Messages:
    6
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    London
    cPanel Access Level:
    DataCenter Provider
    Hi Michael,

    Perfect - thank you very much :)

    Ch.
     
    cPanelMichael likes this.
Loading...

Share This Page