Possible permission prob?
Petrucci, Joseph
Joseph.Petrucci at ddiworld.com
Tue Apr 26 21:56:09 CEST 2005
In the /etc/passwd change the primary group for nagios from 100 to 1000 I just changed mine from the nagios GID to another group and I got the same error. This might fix your problem. The reason root could start it is the setgid() command seams to work for root even if root is not a member of the group.
-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Rusch, Daniel
Sent: Tuesday, April 26, 2005 3:32 PM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Possible permission prob?
All,
I upgraded my nagios site from Version 2.0b2 to Version 2.0b3 and somehow the permissions (or at least I think that's the problem) got hosed and now I can't start nagios as the nagios user. The site was working properly before I upgraded.
I try to start nagios as the user nagios and I get the following error in the log file:
[1114096425] Warning: Could not set effective GID=1000
[1114096425] Failed to drop privileges. Aborting.
(by the way, if I start nagios as root, nagios starts just fine)
In /etc/group:
nobody:x:65533:
nagios:!:1000:nobody,nagios
nagiocmd:!:1002:nagios,nobody
in /etc/passwd
nagios:x:1002:100::/home/nagios:/bin/bash
Directory perms:
Nagios Directory:
/usr/local/nagios
total 11
drwxrwxr-x 8 nagios nagios 240 2005-03-24 12:07 .
drwxr-xr-x 12 root root 288 2005-03-21 09:21 ..
drwxrwxr-x 2 nagios nagios 104 2005-04-19 11:53 bin
drwxrwxr-x 3 nagios nagios 432 2005-04-22 16:56 etc
drwxr-xr-x 2 nagios nagios 2048 2005-04-26 09:34 libexec
drwxrwxr-x 2 nagios nagios 584 2005-04-19 11:53 sbin
drwxrwxr-x 9 nagios nagios 360 2005-04-19 11:53 share
-rwxr-xr-x 1 nagios nagios 66 2005-03-21 10:27 start
-rwxr-xr-x 1 nagios nagios 66 2005-03-21 10:27 test
drwxrwxr-x 4 nagios nagios 256 2005-04-22 09:32 var
Var directory
/usr/local/nagios/var
total 29
drwxrwxr-x 4 nagios nagios 256 2005-04-22 09:32 .
drwxrwxr-x 8 nagios nagios 240 2005-03-24 12:07 ..
drwxrwxr-x 2 nagios nagios 888 2005-04-19 00:00 archives
-rw-rw-r-- 1 nagios nagios 240 2005-03-21 10:27 comments.dat
-rw-rw-r-- 1 nagios nagios 241 2005-03-21 10:27 downtime.dat
-rw-r--r-- 1 nagios users 212 2005-04-22 09:34 nagios.log
-rw-r--r-- 1 nagios nagios 7389 2005-04-21 10:01 objects.cache
-rw------- 1 nagios nagios 7224 2005-04-21 13:40 retention.dat
drwxrwsr-x 2 nagios nagiocmd 80 2005-04-19 17:04 rw
Bin Directory:
/usr/local/nagios/bin
total 392
drwxrwxr-x 2 nagios nagios 104 2005-04-19 11:53 .
drwxrwxr-x 8 nagios nagios 240 2005-03-24 12:07 ..
-rwxrwxr-- 1 nagios nagios 374460 2005-04-19 11:53 nagios
-rwxrwxr-- 1 nagios nagios 24556 2005-04-19 11:53 nagiostats
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20050426/5c5604c7/attachment.html>
More information about the Users
mailing list