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.

Stopping file alterations

Discussion in 'Security' started by Trax2k, Sep 16, 2015.

  1. Trax2k

    Trax2k Member

    Joined:
    Sep 16, 2015
    Messages:
    14
    Likes Received:
    2
    Trophy Points:
    76
    Location:
    UK
    cPanel Access Level:
    Reseller Owner
    Hi,

    Is it possible to globally stop users from making changes to certain files? For example, all my user files are automatically installed so every user uses the same script, so if wanted to stop all users from editing or making changes to the "header.php" file, could this be achieved ?

    Also, how would i completely disable file uploads to the server through a script such as a file sharing script?

    Cheers
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,287
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    You could set an immutable attribute on a file:

    https://en.wikipedia.org/wiki/Chattr

    You can't disable file uploads for a user that has cPanel access to an account.

    Thank you.
     
  3. Trax2k

    Trax2k Member

    Joined:
    Sep 16, 2015
    Messages:
    14
    Likes Received:
    2
    Trophy Points:
    76
    Location:
    UK
    cPanel Access Level:
    Reseller Owner
    Okay thanks :)

    And i'm aware of this, i meant through a script :) Users don't have access to cPanel.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,287
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    You can modify the "file_uploads" attribute in your /usr/local/lib/php.ini file or in the individual php.ini file for the account if you are using suPHP.

    Thank you.
     
  5. Trax2k

    Trax2k Member

    Joined:
    Sep 16, 2015
    Messages:
    14
    Likes Received:
    2
    Trophy Points:
    76
    Location:
    UK
    cPanel Access Level:
    Reseller Owner
    Is the no way to day this automatically every time a new account is created?
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,287
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page