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!

rndc.key keeps losing group read access

Discussion in 'General Discussion' started by akust0m, Sep 19, 2018.

  1. akust0m

    akust0m Well-Known Member

    Joined:
    Feb 19, 2016
    Messages:
    69
    Likes Received:
    4
    Trophy Points:
    8
    Location:
    Melbourne
    cPanel Access Level:
    Root Administrator
    Hey,

    I *think* this may be cPanel doing this, I'm not entirely sure.

    But '/etc/rndc.key' keeps switching back to 600 but I'd like it set to 640. The file is set to named:named (owner:group).

    The reason for this is because I'm using a server monitoring platform where I've written a custom module to extra DNS query information. The user that the monitoring agent runs as has been added to the 'named' group. Every minute the monitoring agent will run a script and part of that script is a call to 'rndc stats' which requires the ability to read the file '/etc/rndc.key'.

    Does cPanel have an ongoing check in place to revert permissions on '/etc/rndc.key' back to 600? If so, is there a way I can prevent this from happening and keep it on 640?

    Thanks!
     
  2. dalem

    dalem Well-Known Member PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,887
    Likes Received:
    120
    Trophy Points:
    368
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    upcp sets the permissions back to 600
    create a create a file /scripts/postupcp an add

    chmod 640 /etc/rndc.key

    to the file
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    5,815
    Likes Received:
    444
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    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