LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Unable to print after upgrade from Fedora Core 5 to 6 (https://www.linuxquestions.org/questions/fedora-35/unable-to-print-after-upgrade-from-fedora-core-5-to-6-a-496391/)

nonfatalexec 10-28-2006 11:51 AM

Unable to print after upgrade from Fedora Core 5 to 6
 
I upgraded from Fedora Core 5 to 6 with Yum using the DVD image as a local repository. The printer is Canon iP4200 that is connected to a Windows XP machine on the local network. Before I upgraded to Fedora Core 6, I was able to print to the printer. Now when I print, cups says that the job is in "printing" status and stays that way indefinitely. Below is the output from /var/log/cups/error_log.

Code:

E [28/Oct/2006:12:31:11 -0400] [Job 121] Can't load /etc/samba/smb.conf - run testparm to debug it
E [28/Oct/2006:12:31:11 -0400] PID 9698 (/usr/lib/cups/backend/smb) stopped with status 1!

I tried testparm and it returned 0 indicating there is no error in smb.conf.

This is the permission settings on smb.conf:
Code:

-rw-r--r--  root root system_u:object_r:samba_etc_t    /etc/samba/smb.conf
This is the boolean settings for SELinux:
Code:

# getsebool -a | grep cups
cupsd_config_disable_trans --> off
cupsd_disable_trans --> off
cupsd_lpd_disable_trans --> off

I am able to use smbclient to verify that the printer is available on the network.

Edit:
From /var/log/cups/error_log at an earlier time, there is another error message that appears to be important.
Code:

E [28/Oct/2006:12:27:58 -0400] Unable to set ACLs on root certificate "/var/run/
cups/certs/0" - Operation not supported

I am able to temporarily fix this when I set SELinux to permissive by using the command "setenforce 0", I am able to print. I will have to watch for news on SELinux rules on printing for a permanent fix.

Thanks.

nonfatalexec 11-11-2006 10:06 PM

For those of you who have the same problem, the bug is in SELinux and has been resolved in selinux-policy-2.4.3-9.fc6. See https://bugzilla.redhat.com/bugzilla....cgi?id=214839 for more detail.

dingodave77 01-02-2007 08:46 PM

I've updated to selinux-policy-2.4.6-13.fc6, and I still get this error... Any other ideas?

nonfatalexec 01-03-2007 10:37 AM

Are you getting the same errors in /var/log/cups/error_log as I did?

dingodave77 01-04-2007 02:28 PM

Yep, I'm getting the exact same error... Nothing has fixed it yet.

nonfatalexec 01-05-2007 11:10 AM

I'm also using selinux-policy-2.4.6-13.fc6 and had no problem with printing to that network printer. Check that /var/run/cups/certs/0 has the correct permissions and security context.

You should get this output when running the command as root:
Code:

# ls -lZ /var/run/cups/certs/0
-r--r-----  root sys user_u:object_r:cupsd_var_run_t  /var/run/cups/certs/0

If your output matches the above, then there is no problem with permissions and context of /var/run/cups/certs/0, and the problem is somewhere else. In this case, post the output of /var/log/audit/audit.log at the approximate time that you attempted to print.

dingodave77 01-05-2007 04:15 PM

Nope, I've got the following:

[root@Dingo plugins]# ls -lZ /var/run/cups/certs/0
-r--r----- root sys system_u:object_r:cupsd_var_run_t /var/run/cups/certs/0

How do I fix this?

dingodave77 01-05-2007 04:32 PM

Figured it out... Just used:

Code:

chcon -u user_u 0
And that fixed my printing issues!

Thanks


All times are GMT -5. The time now is 11:47 PM.