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!

Disable altered RPM check for some Rouncube files?

Discussion in 'General Discussion' started by Gino Viroli, Jan 15, 2019.

Tags:
  1. Gino Viroli

    Gino Viroli Well-Known Member

    Joined:
    Oct 2, 2007
    Messages:
    66
    Likes Received:
    4
    Trophy Points:
    58
    cPanel Access Level:
    Root Administrator
    Hello, we modified some files for Roundcube (simple stylesheets and some html/images ".html, .css, .gif, .png").

    I've got a couple of questions.


    1) Now cPanel alerts us for "Altered RPM found" and lists the files we modified.
    Is there a way to disable this alert, without turning off completely the "Altered RPMs Check" alert in "WHM > Server Contacts > Contact Manager"?
    Becasue we would like to let RPM do its check and alert us in case of changes, except for the files that we modified on purpose and that we know are fine.


    2) when cPanel will upgrade Rouncube version, is it going to overwrite also the files we modified?
    FYI: we left the default permissions to the files 644 - Owner/Group: root/wheel, could be a good idea to set them to 444 in case cPanel overwrites it during upgrades?


    Thanks
     
    #1 Gino Viroli, Jan 15, 2019
    Last edited: Jan 15, 2019
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,301
    Likes Received:
    2,155
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @Gino Viroli,

    Technically, you could set the cpanel-roundcubemail RPM to unmanaged using the instructions in the following document:

    How to Set or Unset RPM Management - cPanel Knowledge Base - cPanel Documentation

    However, doing this means the RPM is no longer managed through cPanel & WHM and would require manual upgrades and maintenance.

    Since you can't exclude specific files from the RPM verification check, the better approach is to setup a custom script or command that modifies the files with your preferred changes, and then setup a post stage upcp hook that automatically runs that script/command each time cPanel updates. Information on how to setup a hook to run after cPanel updates (upcp) is available at:

    Guide to Standardized Hooks - Software Development Kit - cPanel Documentation
    Guide to Standardized Hooks - System Functions - Software Development Kit - cPanel Documentation

    Note you'd also need to create an email filter for that specific RPM notification based on it's message body so the system discards the message.

    Additionally, I recommend opening a feature request for the ability to customize Roundcube without directly modifying it's configuration files:

    Submit A Feature Request

    Let me know if you have any questions.

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice