LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Can print through 3rd party software, but not from gnome apps (https://www.linuxquestions.org/questions/linux-software-2/can-print-through-3rd-party-software-but-not-from-gnome-apps-742961/)

lsutiger 07-26-2009 04:42 PM

Can print through 3rd party software, but not from gnome apps
 
I recently upgraded to ubuntu 9.04 and I am now having problems printing to a shared windows printer. I did not have this issue with 8.04.

Here are the specifics:
I installed the printer through the printing configuration gui. I have to authenticate in order to have access at the installation point. It has a checkbox to remember password. I check it off. At this moment I can print a test page and print whatever I throw at it for a while.

But after moments (I have never tried to time it), I can no longer print from any gnome app, ie envince, eye of gnome. I get the following error
Code:

Failed to print document
Can't prompt for authorization

Here is dmesg
Code:

[1720489.839816] type=1503 audit(1245677356.464:799): operation="inode_permission" requested_mask="::r" denied_mask="::r" fsuid=7 name="/var/run/samba/unexpected.tdb" pid=16846 profile="/usr/sbin/cupsd"
But I can still print a test page....

Now for a little twist....I can print from 3rd party apps such as adobe acrobat and open office (the printing app used by these program are different), but with some work. I need to open the printing console after sending the print job and authorise, then release the document.

I have searched the web for about a month to find a solution, but have not found much. I have posted on the Ubuntu forums with no luck. I hope one of the gurus here can help me out.

Thanx in advance,
lsutiger

Meson 07-27-2009 09:11 AM

You have encountered a very troublesome bug that's been around for a while. https://bugs.launchpad.net/ubuntu/+s...ps/+bug/283811

It and the duplicate bugs listed at the top left, have a number of workarounds. None of them work perfectly. You can probably print one page per startup of CUPS. So if you do
Code:

sudo /etc/init.d/cups restart
you should be able to print. (Sorry.)

Most of the workarounds involved modifying /etc/cups/printers.conf. However the modifications seem to get overwritten. You can prevent this by doing
Code:

sudo chattr +i /etc/cups/printers.conf
(Although I noticed this screws things up if you forget to remove the 'i' when cups gets upgraded.

For now you'll just have to find an acceptable work-around; hang in there though!

lsutiger 07-28-2009 03:31 PM

Thank you!
 
Thank you for your quick reply. Unfortunately, neither of those options work for me. I have tried killing cups, editing the printers.conf file (some admissions on launchpad stated some things that worked for certain ppl), added the attributes and restarted cups. Notta.

Appreciated!

Meson 07-28-2009 07:58 PM

Did you tinker around with cupsd.conf in your search for a solution? Maybe you should reset it to its default state, delete and readd the printer, then try the workaround in the bug listing.


All times are GMT -5. The time now is 04:01 AM.