<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1491" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=502080920-26042005><FONT face=Arial
color=#0000ff size=2>Thanks, </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=502080920-26042005><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=502080920-26042005><FONT face=Arial
color=#0000ff size=2>That worked</FONT></SPAN></DIV><FONT face=Arial
color=#0000ff size=2></FONT><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Petrucci, Joseph
[mailto:Joseph.Petrucci@ddiworld.com] <BR><B>Sent:</B> Tuesday, April 26, 2005
1:56 PM<BR><B>To:</B> Rusch, Daniel;
nagios-users@lists.sourceforge.net<BR><B>Subject:</B> RE: [Nagios-users]
Possible permission prob?<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><SPAN class=183304719-26042005><FONT face=Arial color=#0000ff size=2>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.</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B>
nagios-users-admin@lists.sourceforge.net
[mailto:nagios-users-admin@lists.sourceforge.net]<B>On Behalf Of </B>Rusch,
Daniel<BR><B>Sent:</B> Tuesday, April 26, 2005 3:32 PM<BR><B>To:</B>
nagios-users@lists.sourceforge.net<BR><B>Subject:</B> [Nagios-users] Possible
permission prob?<BR><BR></FONT></DIV>
<DIV dir=ltr align=left><SPAN class=422511615-21042005><FONT face=Arial><FONT
size=2><SPAN class=372560519-26042005>All,</SPAN></FONT></FONT></SPAN></DIV>
<DIV>
<DIV><SPAN class=422511615-21042005><FONT face=Arial><FONT
size=2></FONT></FONT></SPAN> </DIV>
<DIV><SPAN class=422511615-21042005><FONT size=+0><FONT face=Arial size=2>I
upgraded my nagios site <SPAN class=372560519-26042005>from <!--StartFragment --><FONT
face="Times New Roman" size=3> Version 2.0b2 to <!--StartFragment -->
Version 2.0b3 <FONT face=Arial size=2> </FONT></FONT></SPAN>and
somehow the permissions (or at least I think that's the problem) got hosed and
now I can't start nagios<SPAN class=372560519-26042005> as the nagios
user</SPAN>.<SPAN class=372560519-26042005> The site was working
properly before I upgraded.</SPAN></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=422511615-21042005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=422511615-21042005><FONT face=Arial size=2>I try to start
nagios as the user nagios <SPAN class=372560519-26042005>and I get the
following error in the log file:</SPAN></FONT></SPAN><SPAN
class=422511615-21042005><FONT face=Arial size=2></FONT></SPAN></DIV>
<DIV><SPAN class=422511615-21042005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=422511615-21042005><FONT face=Arial size=2>[1114096425]
Warning: Could not set effective GID=1000<BR>[1114096425] Failed to drop
privileges. Aborting.<BR></FONT></SPAN></DIV>
<DIV><SPAN class=422511615-21042005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=422511615-21042005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=422511615-21042005><FONT face=Arial size=2>(by the way<SPAN
class=372560519-26042005>,</SPAN> if I start nagios as root, nagios
starts just fine) </FONT></SPAN></DIV>
<DIV><SPAN class=422511615-21042005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=422511615-21042005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=422511615-21042005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=422511615-21042005><FONT size=+0><FONT face=Arial><FONT
size=2><SPAN class=372560519-26042005>In
/etc/</SPAN>group:</FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=422511615-21042005><FONT face=Arial size=2><SPAN
class=422511615-21042005><FONT face=Arial
size=2></FONT></SPAN></FONT></SPAN> </DIV>
<DIV><SPAN class=422511615-21042005><FONT face=Arial size=2><SPAN
class=422511615-21042005><FONT face=Arial
size=2>nobody:x:65533:<BR></FONT></SPAN></FONT></SPAN><SPAN
class=422511615-21042005><FONT face=Arial
size=2>nagios:!:1000:nobody,nagios<BR>nagiocmd:!:1002:nagios,nobody</FONT></SPAN><SPAN
class=422511615-21042005><FONT face=Arial size=2></FONT></SPAN></DIV>
<DIV><SPAN class=422511615-21042005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=422511615-21042005><FONT face=Arial size=2><SPAN
class=372560519-26042005>in /etc/passwd</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=422511615-21042005><FONT face=Arial size=2><SPAN
class=372560519-26042005>nagios:x:1002:100::/home/nagios:/bin/bash</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=422511615-21042005><FONT face=Arial size=2><SPAN
class=372560519-26042005></SPAN></FONT></SPAN> </DIV>
<DIV><SPAN class=422511615-21042005><FONT face=Arial size=2>Directory perms:
</FONT></SPAN></DIV>
<DIV><SPAN class=422511615-21042005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=422511615-21042005><FONT face=Arial size=2>Nagios
Directory:</FONT></SPAN></DIV>
<DIV><SPAN class=422511615-21042005><FONT face=Arial
size=2>/usr/local/nagios <BR>total 11<BR>drwxrwxr-x 8 nagios
nagios 240 2005-03-24 12:07 .<BR>drwxr-xr-x 12 root
root 288 2005-03-21 09:21 ..<BR>drwxrwxr-x 2
nagios nagios 104 2005-04-19 11:53 bin<BR>drwxrwxr-x 3
nagios nagios 432 2005-04-22 16:56 etc<BR>drwxr-xr-x 2
nagios nagios 2048 2005-04-26 09:34 libexec<BR>drwxrwxr-x 2 nagios
nagios 584 2005-04-19 11:53 sbin<BR>drwxrwxr-x 9 nagios
nagios 360 2005-04-19 11:53 share<BR>-rwxr-xr-x 1 nagios
nagios 66 2005-03-21 10:27 start<BR>-rwxr-xr-x 1
nagios nagios 66 2005-03-21 10:27 test<BR>drwxrwxr-x 4
nagios nagios 256 2005-04-22 09:32 var<BR></FONT></SPAN></DIV>
<DIV><SPAN class=422511615-21042005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=422511615-21042005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=422511615-21042005><FONT face=Arial size=2>Var
directory</FONT></SPAN></DIV>
<DIV><SPAN class=422511615-21042005><FONT face=Arial
size=2>/usr/local/nagios/var </FONT></SPAN></DIV>
<DIV><SPAN class=422511615-21042005><FONT face=Arial size=2>total
29<BR>drwxrwxr-x 4 nagios nagios 256 2005-04-22 09:32
.<BR>drwxrwxr-x 8 nagios nagios 240 2005-03-24 12:07
..<BR>drwxrwxr-x 2 nagios nagios 888 2005-04-19 00:00
archives<BR>-rw-rw-r-- 1 nagios nagios 240 2005-03-21
10:27 comments.dat<BR>-rw-rw-r-- 1 nagios nagios 241
2005-03-21 10:27 downtime.dat<BR>-rw-r--r-- 1 nagios
users 212 2005-04-22 09:34
nagios.log<BR>-rw-r--r-- 1 nagios nagios 7389 2005-04-21
10:01 objects.cache<BR>-rw------- 1 nagios nagios 7224
2005-04-21 13:40 retention.dat<BR>drwxrwsr-x 2 nagios
nagiocmd 80 2005-04-19 17:04 rw<BR></DIV></FONT><FONT face=Arial
size=2></FONT></SPAN>
<DIV><SPAN class=422511615-21042005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=422511615-21042005><FONT face=Arial size=2>Bin
Directory:</FONT></SPAN></DIV>
<DIV><SPAN class=422511615-21042005><FONT face=Arial
size=2>/usr/local/nagios/bin <BR>total 392<BR>drwxrwxr-x 2 nagios
nagios 104 2005-04-19 11:53 .<BR>drwxrwxr-x 8 nagios
nagios 240 2005-03-24 12:07 ..<BR>-rwxrwxr-- 1 nagios
nagios 374460 2005-04-19 11:53 nagios<BR>-rwxrwxr-- 1 nagios
nagios 24556 2005-04-19 11:53 nagiostats</FONT><FONT face=Arial
size=2></FONT></SPAN></DIV>
<DIV><FONT size=2><FONT face=Arial><SPAN
class=422511615-21042005> </DIV></SPAN></FONT></FONT>
<DIV><SPAN class=422511615-21042005></SPAN> </DIV>
<DIV><FONT face=Arial size=2></FONT><SPAN
class=422511615-21042005> </DIV>
<DIV><FONT face=Arial><BR><FONT
size=2></FONT></FONT></DIV></SPAN></DIV></BLOCKQUOTE></BODY></HTML>