<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<TITLE>RE: [Nagios-users] RE: Permissions Error</TITLE>
<META content="MSHTML 5.50.4616.200" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=499241217-09122002><FONT color=#0000ff size=2>In the httpd.conf
file there is an entry that determines the group apache runs as. In my
httpd.conf file it looks like the following:</FONT></SPAN></DIV>
<DIV><SPAN class=499241217-09122002><FONT color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=499241217-09122002><FONT color=#0000ff size=2># If you wish
httpd to run as a different user or group, you must run<BR># httpd as root
initially and it will switch.<BR>#<BR># User/Group: The name (or #number) of the
user/group to run httpd as.<BR># . On SCO (ODT 3) use "User nouser" and
"Group nogroup".<BR># . On HPUX you may not be able to use shared memory
as nobody, and the<BR># suggested workaround is to create a
user www and use that user.<BR># NOTE that some kernels refuse to
setgid(Group) or semctl(IPC_SET)<BR># when the value of (unsigned)Group is
above 60000;<BR># don't use Group nobody on these systems!<BR>#<BR>User
nobody<BR>Group nobody<BR></FONT></SPAN></DIV>
<DIV><SPAN class=499241217-09122002><FONT color=#0000ff size=2>How is yours
set.</FONT></SPAN></DIV>
<DIV><SPAN class=499241217-09122002><FONT color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=499241217-09122002><FONT color=#0000ff
size=2>Greg</DIV></FONT></SPAN>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Chris Losch
[mailto:Chris.Losch@newham.gov.uk]<BR><B>Sent:</B> Monday, December 09, 2002
11:05 AM<BR><B>To:</B> Potter, G M (Greg)<BR><B>Subject:</B> RE:
[Nagios-users] RE: Permissions Error (Could not stat() command file
)<BR><BR></FONT></DIV>
<DIV><SPAN class=937555116-09122002><FONT face=Arial color=#0000ff size=2>As
you suggested, </FONT></SPAN></DIV>
<DIV><SPAN class=937555116-09122002><FONT face=Arial color=#0000ff size=2>I
tried changing the /etc/passwd for apache so that its primary group became
'nagiocmd' and restarted Apache, didn't help, then rebooted - Just In
Case - and checked everything was up and as expected, still didn't fix
the problem. *sigh*</FONT></SPAN></DIV>
<DIV><SPAN class=937555116-09122002><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=937555116-09122002><FONT face=Arial color=#0000ff
size=2>Thanks again.</FONT></SPAN></DIV>
<DIV><SPAN class=937555116-09122002><FONT face=Arial color=#0000ff
size=2>Chris</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> Potter, G M (Greg)
[mailto:GPotter@MarathonOil.com]<BR><B>Sent:</B> 09 December 2002
15:20<BR><B>To:</B> Chris Losch; Terry Inzauro<BR><B>Cc:</B>
nagios-users@lists.sourceforge.net<BR><B>Subject:</B> RE: [Nagios-users] RE:
Permissions Error (Could not stat() command file )<BR><BR></FONT></DIV>
<DIV><SPAN class=619431715-09122002><FONT color=#0000ff size=2>What is
apache's primary group in the /etc/passwd file. Just because it is in
the group file doesn't mean that is it's current group (I think). I
believe the process has to do a newgrp to have it's effective group changed
to group nagioscmd. It is worth a shot.</FONT></SPAN></DIV>
<DIV><SPAN class=619431715-09122002><FONT color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=619431715-09122002><FONT color=#0000ff
size=2>Greg</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px"> </BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>