From: Ryan J. <rj...@sc...> - 2012-11-20 23:06:00
|
<html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#FFFFFF" text="#000000"> <font size="-1"><font face="Trebuchet MS">Hello ag<font size="-1"><font face="Trebuchet MS">ain. So I've been reading<font size="-1"><font face="Trebuchet MS"> and learning (a little) about</font></font> SELinux today<font size="-1"><font face="Trebuchet MS">, but I haven't made much progress. <font size="-1"><font face="Trebuchet MS">Se<font size="-1"><font face="Trebuchet MS">tting selinux to permissive resolves the error. <font size="-1"><font face="Trebuchet MS">Selinux context on my /var/www/webacula is:<br> <font size="-1"><font face="Trebuchet MS">drwxr-xr-x. <font size="-1"><font face="Trebuchet MS">apache apache system_u:object_r:httpd_sys_content_t:s0<br> <br> <font size="-1"><font face="Trebuchet MS">Entries in /var/log/messages are:<br> <font size="-1"><font face="Trebuchet MS">bconsole: bsock.c:135 Unable to connect to Director daemon on localhost:9101<font size="-1"><font face="Trebuchet MS">. ERR=Permission denied<br> <br> <font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS">My interpretation of that error is bconsole is not able to connect to bacula-dir<font size="-1"><font face="Trebuchet MS">, but I can manually start bconsole. It seems <font size="-1"><font face="Trebuchet MS">the problem is when apache<font size="-1"><font face="Trebuchet MS"> or webacula tries to start bconsole<br> <br> <font size="-1"><font face="Trebuchet MS">Selinux context on /usr/sbin/bacula-dir:<br> </font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font><small>lrwxrwxrwx.</small><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"> root root <font size="-1"><font face="Trebuchet MS"> unconfined_u:object_r:bin_t:s0</font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font><br> <br> </font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS">Selinux context on /usr/sbin/bconsole<br> </font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font>-rwxr-x---.<font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"> root bacula <font size="-1"><font face="Trebuchet MS"> system_u:object_r:bin_t:s0</font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font><br> <br> <font size="-1"><font face="Trebuchet MS">I'm <font size="-1"><font face="Trebuchet MS">not sure what permissions need to be modified. Any ideas?<br> <br> <font size="-1"><font face="Trebuchet MS">Thanks</font></font></font></font></font></font><br> <br> </font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font> <div class="moz-cite-prefix">On 11/20/2012 6:31 AM, Ryan Jantz wrote:<br> </div> <blockquote cite="mid:414...@sc..." type="cite"> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"> <div><span></span></div> <div> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"> <div>Yes. </div> <div><br> </div> <div>I figured out SELinux is the problem. If I disable it, the errors stop. Now to figure out how to configure SELinux so it plays nice with Apache.</div> <div><br> </div> <div>Thanks<br> <br> On Nov 20, 2012, at 2:17 AM, Radosław Korzeniewski <<a moz-do-not-send="true" href="mailto:rad...@ko...">rad...@ko...</a>> wrote:<br> <br> </div> <blockquote type="cite"> <div>Hello,<br> <br> <div class="gmail_quote">2012/11/19 Ryan Jantz <span dir="ltr"><<a moz-do-not-send="true" href="mailto:rj...@sc..." target="_blank">rj...@sc...</a>></span><br> <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <div bgcolor="#FFFFFF" text="#000000"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS">I am able to run the abo<font size="-1"><font face="Trebuchet MS">ve command in ter<font size="-1"><font face="Trebuchet MS">minal as root and the apache user without any errors. <font size="-1"><font face="Trebuchet MS">The apache user is a member of the bacula group.</font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></div> </blockquote> <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">(...)</blockquote> <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <div bgcolor="#FFFFFF" text="#000000"><font size="-1"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"><font size="-1"><font face="Trebuchet MS"> <font size="-1"><font face="Trebuchet MS">Any ideas?<br> </font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></div> </blockquote> <div><br> </div> <div>Did you restart an apache webserver?</div> <div><br> </div> <div>best regards </div> </div> -- <br> Radosław Korzeniewski<br> <a moz-do-not-send="true" href="mailto:rad...@ko...">rad...@ko...</a><br> </div> </blockquote> <blockquote type="cite"> <div><span>------------------------------------------------------------------------------</span><br> <span>Monitor your physical, virtual and cloud infrastructure from a single</span><br> <span>web console. Get in-depth insight into apps, servers, databases, vmware,</span><br> <span>SAP, cloud infrastructure, etc. Download 30-day Free Trial.</span><br> <span>Pricing starts from $795 for 25 servers or applications!</span><br> <span><a moz-do-not-send="true" href="http://p.sf.net/sfu/zoho_dev2dev_nov">http://p.sf.net/sfu/zoho_dev2dev_nov</a></span></div> </blockquote> <blockquote type="cite"> <div><span>_______________________________________________</span><br> <span>Bacula-users mailing list</span><br> <span><a moz-do-not-send="true" href="mailto:Bac...@li...">Bac...@li...</a></span><br> <span><a moz-do-not-send="true" href="https://lists.sourceforge.net/lists/listinfo/bacula-users">https://lists.sourceforge.net/lists/listinfo/bacula-users</a></span><br> </div> </blockquote> </div> <br> <fieldset class="mimeAttachmentHeader"></fieldset> <br> <pre wrap="">------------------------------------------------------------------------------ Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! <a class="moz-txt-link-freetext" href="http://p.sf.net/sfu/zoho_dev2dev_nov">http://p.sf.net/sfu/zoho_dev2dev_nov</a></pre> <br> <fieldset class="mimeAttachmentHeader"></fieldset> <br> <pre wrap="">_______________________________________________ Bacula-users mailing list <a class="moz-txt-link-abbreviated" href="mailto:Bac...@li...">Bac...@li...</a> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/bacula-users">https://lists.sourceforge.net/lists/listinfo/bacula-users</a> </pre> </blockquote> <br> </body> </html> |