nagios user and reconfigure_nagios.sh permissions
Posted: Wed Mar 26, 2014 3:41 pm
I know this can be done, because I've done it once and it didn't capture the commands to recreate it, so can you please help?
as the user nagios, on one server, I can run reconfigure_nagios.sh, but on another server it produces some of the errors shown below.
tar: usr/local/nagios/etc/hosts: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc/hosts: Cannot change mode to rwsrwsr-x: Operation not permitted
tar: usr/local/nagios/etc/pnp/pages: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc/pnp/pages: Cannot change mode to rwxrwsr-x: Operation not permitted
tar: usr/local/nagios/etc/pnp/check_commands: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc/pnp/check_commands: Cannot change mode to rwxrwsr-x: Operation not permitted
I think I ran a script that reset permissions and then maybe relaxed some of the permissions, but I don't remember. I assume it's OK to be able to run reconfigure_nagios.sh as nagios instead of root. (I know that if you run the command as both root and nagios, the temporary file ownership messes it all up, but if I always run the command line as nagios, I don't have this problem.)
Thanks!
as the user nagios, on one server, I can run reconfigure_nagios.sh, but on another server it produces some of the errors shown below.
tar: usr/local/nagios/etc/hosts: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc/hosts: Cannot change mode to rwsrwsr-x: Operation not permitted
tar: usr/local/nagios/etc/pnp/pages: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc/pnp/pages: Cannot change mode to rwxrwsr-x: Operation not permitted
tar: usr/local/nagios/etc/pnp/check_commands: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc/pnp/check_commands: Cannot change mode to rwxrwsr-x: Operation not permitted
I think I ran a script that reset permissions and then maybe relaxed some of the permissions, but I don't remember. I assume it's OK to be able to run reconfigure_nagios.sh as nagios instead of root. (I know that if you run the command as both root and nagios, the temporary file ownership messes it all up, but if I always run the command line as nagios, I don't have this problem.)
Thanks!