<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Mar 30, 2013 at 4:46 PM, Ed Greshko <span dir="ltr">&lt;<a href="mailto:Ed.Greshko@greshko.com" target="_blank">Ed.Greshko@greshko.com</a>&gt;</span> wrote:<br>
<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">On 03/31/13 02:02, Richard Vickery wrote:<br>
<div><div class="h5">&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Fri, Mar 29, 2013 at 11:06 PM, Ed Greshko &lt;<a href="mailto:Ed.Greshko@greshko.com">Ed.Greshko@greshko.com</a> &lt;mailto:<a href="mailto:Ed.Greshko@greshko.com">Ed.Greshko@greshko.com</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;     On 03/30/13 13:03, Richard Vickery wrote:<br>
&gt;     &gt; can anyone help me figure out what is going on here? I&#39;ll look at it in the morning, but still might not find it on my own.<br>
&gt;     &gt;<br>
&gt;     &gt; SELinux is preventing /usr/lib/cups/filter/hpcups from search access on the directory /var/lib/hp.<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;<br>
&gt;     What is the output of<br>
&gt;<br>
&gt;     ls -dZ /var/lib/hp<br>
&gt;<br>
&gt;     It should be<br>
&gt;<br>
&gt;     drwxr-xr-x. root root system_u:object_r:cupsd_var_lib_t:s0 /var/lib/hp<br>
&gt;<br>
&gt;     If it is not, then<br>
&gt;<br>
&gt;     restorecon -R /var/lib/hp<br>
&gt;<br>
&gt;<br>
&gt; Before and after the command restorecon -R /var/lib/hp, ls -dZ /var/lib/hp reads<br>
&gt;<br>
&gt; drwxr-xr-x. root root system_u:object_r:hplip_var_lib_t:s0 /var/lib/hp<br>
&gt;<br>
&gt; But, when I plug the USB printer, and it connects, the printer doesn&#39;t exist:<br>
&gt;<br>
&gt; $: lpr March*<br>
&gt; lpr: Error - no default destination available.<br>
&gt;<br>
&gt; Location in system-config-printer shows empty / vacant<br>
&gt;<br>
<br>
</div></div>First, keep in mind that I&#39;m currently addressing your selinux issue.<br>
<br>
But, just to be sure, what is the output of the following commands.<br>
<br>
rpm -qa | grep ^hp<br>
lpstat -a<br>
grep /var/lib/hp /etc/selinux/targeted/contexts/files/file_contexts<br>
<br>
Then, would you mind to try this sequence?<br>
<br>
[root@localhost ~]# cd /var/lib<br>
[root@localhost lib]# rmdir hp<br>
[root@localhost lib]# mkdir hp<br>
[root@localhost lib]# ls -dZ hp<br>
drwxr-xr-x. root root unconfined_u:object_r:var_lib_t:s0 hp<br>
[root@localhost lib]# restorecon -RF hp<br>
[root@localhost lib]# ls -dZ hp<br>
drwxr-xr-x. root root system_u:object_r:cupsd_var_lib_t:s0 hp<br>
<div class=""><div class="h5"><br><span style="color:rgb(34,34,34)"> </span><br></div></div></blockquote><div> </div><div style><div>$ rpm -qa | grep ^hp</div><div>hplip-libs-3.13.2-1.fc18.x86_64</div><div>hplip-gui-3.13.2-1.fc18.x86_64</div>
<div>hplip-3.13.2-1.fc18.x86_64</div><div>hplip-common-3.13.2-1.fc18.x86_64</div><div>hpijs-3.13.2-1.fc18.x86_64</div><div><br></div><div style>$ lpstat -a</div><div>HP_LaserJet_P1005 accepting requests since Sat 30 Mar 2013 05:47:46 PM PDT<br>
</div><div><br></div><div>$ grep /var/lib/hp /etc/selinux/targeted/contexts/files/file_contexts</div><div>/var/lib/hp(/.*)?<span class="" style="white-space:pre">        </span>system_u:object_r:hplip_var_lib_t:s0<br></div><div>
<br></div><div style>I&#39;ve got hplip installed rather than - or in addition to - cups</div><div style><br></div><div style><div>[root@localhost lib]# ls -dZ hp</div><div>drwxr-xr-x. root root unconfined_u:object_r:var_lib_t:s0 hp</div>
<div>[root@localhost lib]# restorecon -RF hp</div><div>[root@localhost lib]# ls -dZ hp</div><div>drwxr-xr-x. root root system_u:object_r:hplip_var_lib_t:s0 hp</div></div></div></div></div></div>