Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 11-29-2004, 04:45 PM   #1
LQ Newbie
Registered: Nov 2004
Distribution: RedHat Enterprise WS
Posts: 1

Rep: Reputation: 0
cups/samba print w/o passwd in printers.conf?

I've been struggling with getting printing set up with CUPS and Samba
and have made it to the point where I can print from my linux box to a
printer that is on the Windows side of our network. Unfortunately, the
only reliable solution (so far)requires that my password be placed in clear
text in the /etc/cups/printers.conf file in the line

DeviceURI smb://myname:mypasswd@mei_nt1/zeppo/myprintername

If I change that line to remove my password, nothing will print. For
example, if lpq tells me that job 73 is in the queue for my printer, then
the tail of my /var/log/cups/error_log says

Started backend /usr/lib/cups/backend smb (PID10780) for job 73.
[Job 73] Connection failed with error NT_STATUS_ACCESS_DENIED
[Job 73] Unable to connect to SAMBA host, will retry in 60 seconds...

If I change it back and restart CUPS, then anything in the print
queue will immediately go to the printer and start printing. What can
I change in my authorizations or configurations so that I don't need to
put my password in that file?

I am using RedHat Enterprise 3 WS.
Old 03-29-2010, 06:26 AM   #2
LQ Newbie
Registered: Jan 2006
Posts: 3

Rep: Reputation: 0
I had the exact opposite problem to the original poster - I wanted to disable the asking for the username and password, and wanted my password to be in the file (which I've now done, thanks to the obvious way shown). I can also answer the question, in case anyone else is looking. You need to add:

AuthInfoRequired username,password


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
Samba/Cups print sharing problems (/var/spool/samba files) Gates1026 Linux - General 9 06-23-2013 01:33 AM
SAMBA host... print with cups? hraposo Slackware 22 01-02-2006 01:09 PM
using samba, cups to print to XP on home LAN rfw62 Linux - Software 1 05-06-2005 05:04 PM
CUPS printers not available until Samba is restarted ikletti Linux - Networking 0 05-21-2004 08:43 AM
samba/cups print job size carpman Linux - Networking 1 01-25-2002 05:40 AM > Forums > Linux Forums > Linux - Networking

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

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