/usr/local/nagios/etc conf files permission
Posted: Tue Feb 16, 2010 3:55 pm
I have a problem with the configuration files on Nagios XI. I set /usr/local/nagios/* to nagios:nagios 755 and everything looks ok. After make any change on the configuration and apply the configuration changes, some of the /etc/.cfg files are going back to nagios:user and the write conf files tool is failing with writing permission. Help!
Ileana
-rwxrwxr-x 1 nagios users 744 Jan 11 10:14 cgi.cfg
-rwxrwxr-x 1 nagios users 14771 Feb 16 15:35 commands.cfg
-rwxrwxr-x 1 nagios users 1113 Feb 16 15:35 contactgroups.cfg
-rwxrwxr-x 1 nagios users 1612 Feb 16 15:35 contacts.cfg
-rwxrwxr-x 1 nagios users 1437 Feb 16 15:35 contacttemplates.cfg
-rwxrwxr-x 1 nagios users 662 Feb 16 15:35 hostdependencies.cfg
-rwxrwxr-x 1 nagios users 664 Feb 16 15:35 hostescalations.cfg
-rwxrwxr-x 1 nagios users 682 Feb 16 15:35 hostextinfo.cfg
-rwxrwxr-x 1 nagios users 990 Feb 16 15:35 hostgroups.cfg
drwxrwxr-x 2 nagios nagios 4096 Feb 16 14:27 hosts
-rwxrwxr-x 1 nagios users 6101 Feb 16 15:35 hosttemplates.cfg
drwxrwxr-x 2 nagios nagios 4096 Feb 15 16:23 import
-rwxrwxr-x 1 nagios users 5714 Feb 15 16:23 nagios.cfg
-rwxrwxr-x 1 nagios users 2229 Jan 11 10:16 ndo2db.cfg
-rwxrwxr-x 1 nagios users 4723 Jan 11 10:16 ndomod.cfg
-rwxrwxr-x 1 nagios users 7207 Jan 11 10:16 nrpe.cfg
-rwxrwxr-x 1 nagios users 5345 Jan 11 10:16 nsca.cfg
drwxrwxr-x 4 nagios nagios 4096 Jan 11 10:16 pnp
-rwxrwxr-x 1 nagios users 210 Jan 11 10:14 resource.cfg
Ileana
-rwxrwxr-x 1 nagios users 744 Jan 11 10:14 cgi.cfg
-rwxrwxr-x 1 nagios users 14771 Feb 16 15:35 commands.cfg
-rwxrwxr-x 1 nagios users 1113 Feb 16 15:35 contactgroups.cfg
-rwxrwxr-x 1 nagios users 1612 Feb 16 15:35 contacts.cfg
-rwxrwxr-x 1 nagios users 1437 Feb 16 15:35 contacttemplates.cfg
-rwxrwxr-x 1 nagios users 662 Feb 16 15:35 hostdependencies.cfg
-rwxrwxr-x 1 nagios users 664 Feb 16 15:35 hostescalations.cfg
-rwxrwxr-x 1 nagios users 682 Feb 16 15:35 hostextinfo.cfg
-rwxrwxr-x 1 nagios users 990 Feb 16 15:35 hostgroups.cfg
drwxrwxr-x 2 nagios nagios 4096 Feb 16 14:27 hosts
-rwxrwxr-x 1 nagios users 6101 Feb 16 15:35 hosttemplates.cfg
drwxrwxr-x 2 nagios nagios 4096 Feb 15 16:23 import
-rwxrwxr-x 1 nagios users 5714 Feb 15 16:23 nagios.cfg
-rwxrwxr-x 1 nagios users 2229 Jan 11 10:16 ndo2db.cfg
-rwxrwxr-x 1 nagios users 4723 Jan 11 10:16 ndomod.cfg
-rwxrwxr-x 1 nagios users 7207 Jan 11 10:16 nrpe.cfg
-rwxrwxr-x 1 nagios users 5345 Jan 11 10:16 nsca.cfg
drwxrwxr-x 4 nagios nagios 4096 Jan 11 10:16 pnp
-rwxrwxr-x 1 nagios users 210 Jan 11 10:14 resource.cfg