<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>What user is Apache running under?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Tim Dunphy [mailto:bluethundr@gmail.com] <br><b>Sent:</b> Monday, March 18, 2013 6:17 PM<br><b>To:</b> nagios-users@lists.sourceforge.net<br><b>Subject:</b> [Nagios-users] can't access nagios.cmd from the interface<o:p></o:p></span></p></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Hello,<br><br> I'm running nagios 3.2 under centos 5.9 and I notice if I try to issue any command such as rescheduling a check I see the message:<br><br> <br clear=all><o:p></o:p></p><div><p class=MsoNormal style='margin-bottom:12.0pt'>"Error: Could not open command file '/usr/local/nagios/var/rw/nagios.cmd' for update!<o:p></o:p></p></div><div><p class=MsoNormal style='margin-bottom:12.0pt'>The permissions on the external command file and/or directory may be incorrect. Read the FAQs on how to setup proper permissions.<o:p></o:p></p></div><div><p class=MsoNormal style='margin-bottom:12.0pt'>An error occurred while attempting to commit your command for processing.<br><br>Return from whence you came"<br><br>These are the permissions and ownership on this file:<br><br>prw-rw---- 1 nagios nagios 0 Mar 16 08:01 /usr/local/nagios/var/rw/nagios.cmd<br><br>Since this file gets recreated I tried applying the following commands:<br><br>[root@cloud:~] #chown nagios.nagios /usr/local/nagios/var/rw<br>[root@cloud:~] #chmod g+rwx /usr/local/nagios/var/rw<br>[root@cloud:~] #chmod g+s /usr/local/nagios/var/rw<br><br>This seems to have no effect. I notice if I try to reschedule the command again I get the same error message telling me to 'return from whence I came'. <br><br>The only thing I can do to make this temporarily work from the interface is to change mode on that command file to world which is obviously not what you want to do.<br><br>Can someone please point me in the right direction here as to where I may be going wrong?<br><br>Thanks!<br>Tim<br><br><br><o:p></o:p></p></div><p class=MsoNormal style='margin-bottom:12.0pt'><br>-- <br>GPG me!!<br><br>gpg --keyserver <a href="http://pool.sks-keyservers.net" target="_blank">pool.sks-keyservers.net</a> --recv-keys F186197B<o:p></o:p></p></div></body></html>