LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 10-28-2006, 11:51 AM   #1
nonfatalexec
Member
 
Registered: May 2006
Location: Toronto, Canada
Distribution: Fedora 17
Posts: 36

Rep: Reputation: 15
Question 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.

Last edited by nonfatalexec; 10-29-2006 at 10:24 PM.
 
Old 11-11-2006, 10:06 PM   #2
nonfatalexec
Member
 
Registered: May 2006
Location: Toronto, Canada
Distribution: Fedora 17
Posts: 36

Original Poster
Rep: Reputation: 15
Lightbulb

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.
 
Old 01-02-2007, 08:46 PM   #3
dingodave77
LQ Newbie
 
Registered: Aug 2005
Posts: 4

Rep: Reputation: 0
I've updated to selinux-policy-2.4.6-13.fc6, and I still get this error... Any other ideas?
 
Old 01-03-2007, 10:37 AM   #4
nonfatalexec
Member
 
Registered: May 2006
Location: Toronto, Canada
Distribution: Fedora 17
Posts: 36

Original Poster
Rep: Reputation: 15
Are you getting the same errors in /var/log/cups/error_log as I did?
 
Old 01-04-2007, 02:28 PM   #5
dingodave77
LQ Newbie
 
Registered: Aug 2005
Posts: 4

Rep: Reputation: 0
Yep, I'm getting the exact same error... Nothing has fixed it yet.
 
Old 01-05-2007, 11:10 AM   #6
nonfatalexec
Member
 
Registered: May 2006
Location: Toronto, Canada
Distribution: Fedora 17
Posts: 36

Original Poster
Rep: Reputation: 15
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.
 
Old 01-05-2007, 04:15 PM   #7
dingodave77
LQ Newbie
 
Registered: Aug 2005
Posts: 4

Rep: Reputation: 0
Nope, I've got the following:

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

How do I fix this?
 
Old 01-05-2007, 04:32 PM   #8
dingodave77
LQ Newbie
 
Registered: Aug 2005
Posts: 4

Rep: Reputation: 0
Figured it out... Just used:

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

Thanks
 
  


Reply

Tags
fedora, printing, selinux


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Java applications does not print on fedora core 5 erroldennis Linux - Software 0 07-02-2006 08:33 PM
Upgrade Fedora Core 4 (FC4) to Fedora Core 5 (FC5) hangs vogelap Fedora - Installation 10 05-22-2006 09:00 AM
Unable to update software after Core 5 upgrade oldoak Fedora - Installation 2 03-26-2006 12:03 PM
Unable to print to IBM InfoPrint 40 using CUPS system under Fedora Core 2 NoPlan Linux - Newbie 1 04-19-2004 05:58 PM
Print Sharing with Win 98 SE and Fedora Core 1 buzz47711 Linux - Networking 1 02-05-2004 10:18 PM


All times are GMT -5. The time now is 05:09 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration