Page 1 of 1

tar: ../servicetemplates: Cannot utime: Operation not permit

Posted: Fri Feb 09, 2018 3:31 pm
by kendallchenoweth
Hello,

I'm sure I've seen this before, but I can't remember how to fix it. I'm getting this error when I apply changes with reconfigure_nagios.sh

tar: Removing leading `/' from member names
tar: usr/local/nagios/etc/cfgprep/servicetemplates: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc/cfgprep/servicetemplates: Cannot change mode to rwxrwxr-x: Operation not permitted
tar: usr/local/nagios/etc/cfgprep/hosts: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc/cfgprep/hosts: Cannot change mode to rwxrwxr-x: Operation not permitted
tar: usr/local/nagios/etc/cfgprep/contacts: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc/cfgprep/contacts: Cannot change mode to rwxrwxr-x: Operation not permitted
tar: usr/local/nagios/etc/cfgprep/timeperiods: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc/cfgprep/timeperiods: Cannot change mode to rwxrwxr-x: Operation not permitted
tar: usr/local/nagios/etc/cfgprep/services: Cannot utime: Operation not permitted
tar: usr/local/nagios/etc/cfgprep/services: Cannot change mode to rwxrwxr-x: Operation not permitted
...
tar: Exiting with failure status due to previous errors


What permissions am I supposed to change?

Re: tar: ../servicetemplates: Cannot utime: Operation not pe

Posted: Fri Feb 09, 2018 4:26 pm
by npolovenko
Hello, @kendallchenoweth.
Please run the following command to reset the config permissions.

Code: Select all

/usr/local/nagiosxi/scripts/reset_config_perms.sh
That should fix that for you.