retention.dat permissions
retention.dat permissions
Hello, I'm running Nagios Core 4.1.1 and to assist with some of my homegrown syncing mechanisms I'd like to change the permissions of the retention.dat file. I have changed it to 640 but whenever the file is updated by nagios the permissions go back to the default 600. Is this something that can be easily set somewhere or is it hardcoded? I googled and checked the nagios.cfg and umask but didn't find anything. Is there something obvious that I'm missing. Any assistance would be greatly appreciated.
-
- Posts: 1597
- Joined: Tue Sep 27, 2016 4:57 pm
Re: retention.dat permissions
It's set in the function mkstemp(), there are no configurable options for it meaning you'd have to change the code.
A request could be made here to implement some user defined options, but I'm not sure how popular that would be.
https://github.com/NagiosEnterprises/nagioscore
A request could be made here to implement some user defined options, but I'm not sure how popular that would be.
https://github.com/NagiosEnterprises/nagioscore
Previous Nagios employee
Re: retention.dat permissions
I understand. Thank you for your time.
Re: retention.dat permissions
Did you have any further questions or are we okay to close this thread?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: retention.dat permissions
You can close the thread. Thanks.