You are not logged in.

#1 2009-05-17 14:14:12

scooper
Member
Registered: 2009-05-17
Posts: 2

[SOLVED] Printing to Windows (Vista) fails

[SOLVED] By setting AuthInfoRequired to none in printers.conf (thanks go to firecat53).

My first Arch problem that has me stumped... smile  Sorry for the long-ish post, but I'm trying to make all the information available that might help.

I want to print to a Vista-attached printer (LaserJet).  I followed the Wiki instructions at  http://wiki.archlinux.org/index.php/Cup … to_Windows by providing a URL like smb://username:password@domain/hostname/printer_name when creating the printer in the Cups web interface.

It looks like it's formatting the pages for printing, but no job appears in the Cups queue.  I can successfully print a test page from the Cups printer page, but only if I provide my own user name/password (steve/******) in the pop-up password prompt, rather than root.  I do not see an error or a job on the Cups printer page.

/var/log/cups/error_log looks like this:

I [17/May/2009:09:59:15 -0400] Listening to 0.0.0.0:631 (IPv4)
I [17/May/2009:09:59:15 -0400] Listening to :::631 (IPv6)
I [17/May/2009:09:59:15 -0400] Remote access is enabled.
I [17/May/2009:09:59:15 -0400] Loaded configuration file "/etc/cups/cupsd.conf"
I [17/May/2009:09:59:15 -0400] Using default TempDir of /var/spool/cups/tmp...
I [17/May/2009:09:59:15 -0400] Configured for up to 100 clients.
I [17/May/2009:09:59:15 -0400] Allowing up to 100 client connections per host.
I [17/May/2009:09:59:15 -0400] Using policy "default" as the default!
I [17/May/2009:09:59:15 -0400] Full reload is required.
I [17/May/2009:09:59:15 -0400] Loaded MIME database from '/etc/cups': 35 types, 40 filters...
*** WARNING *** The program 'cupsd' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=cupsd>
W [17/May/2009:09:59:15 -0400] DNS-SD registration of "LaserJet" failed with -65537
I [17/May/2009:09:59:15 -0400] Loading job cache file "/var/cache/cups/job.cache"...
I [17/May/2009:09:59:15 -0400] Full reload complete.
I [17/May/2009:09:59:15 -0400] Cleaning out old temporary files in "/var/spool/cups/tmp"...
I [17/May/2009:09:59:15 -0400] Listening to 0.0.0.0:631 on fd 3...
E [17/May/2009:09:59:15 -0400] Unable to open listen socket for address :::631 - Address family not supported by protocol.
I [17/May/2009:09:59:15 -0400] Resuming new connection processing...
W [17/May/2009:09:59:15 -0400] DNS-SD registration of "LaserJet" failed with -65537
E [17/May/2009:09:59:15 -0400] Unable to set ACLs on root certificate "/var/run/cups/certs/0" - Operation not supported
I [17/May/2009:09:59:46 -0400] [Job ???] Request file type is application/postscript.
E [17/May/2009:09:59:46 -0400] Print-Job: Unauthorized

I presume the key is the "Print-Job: Unauthorized" error?  Not sure if the DNS-SD and ACL errors are relevant.  Perhaps they are.

My user is in the lp group.  Samba is running (not sure it matters).  The user/password on the Vista machine is (steve/******).  I noticed that /var/spool/cups does not have group write permissions.  Is this normal?

Here's /etc/cups/printers.conf:

<DefaultPrinter LaserJet>
AuthInfoRequired username,password
Info LaserJet
Location 
DeviceURI smb://steve:******@vistaserver/LaserJet
State Idle
StateTime 1242501997
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
AllowUser steve
OpPolicy default
ErrorPolicy stop-printer
</Printer>

All suggestions are welcome.  Note that I want to keep the printer attached to Vista for various reasons.

Thanks in advance!

Last edited by scooper (2009-05-19 11:36:58)

Offline

#2 2009-05-18 04:03:04

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: [SOLVED] Printing to Windows (Vista) fails

Try changing to 'AuthInfoRequired none' and restarting cups.  If this is the problem, you will right now not be able to print from firefox or evince, but some programs like openoffice will prompt you for the password. Changing printers.conf should fix that. You don't need samba running on your client machine, either.

Good luck!

Scott

Last edited by firecat53 (2009-05-18 04:03:45)

Offline

#3 2009-05-19 11:35:02

scooper
Member
Registered: 2009-05-17
Posts: 2

Re: [SOLVED] Printing to Windows (Vista) fails

firecat53 wrote:

Try changing to 'AuthInfoRequired none' and restarting cups.  If this is the problem, you will right now not be able to print from firefox or evince, but some programs like openoffice will prompt you for the password. Changing printers.conf should fix that. You don't need samba running on your client machine, either.

This worked.  Thanks, firecat53!

Offline

Board footer

Powered by FluxBB