Save print server authentication credentials

23,427

To get rid of the "Authentication Required to Print" dialog this is done by directly editing the file, /etc/cups/printers.conf as follows:

  1. Open a terminal window:
  2. Stop the cups server: sudo service cups stop
  3. Edit the printers.conf file.

sudo gedit /etc/cups/printers.conf

Near the top of file /etc/cups/printers.conf is a line:

AuthInfoRequired username,password

Insert a "#" char in the first column (or, just delete the line):

#AuthInfoRequired username,password

  1. Save edited file
  2. Restart cups server:

sudo service cups start

This should fix the problem.

Reference

Share:
23,427

Related videos on Youtube

Bruno
Author by

Bruno

Updated on September 18, 2022

Comments

  • Bruno
    Bruno almost 2 years

    At my work, I print through a print server.

    My /etc/cups.d/client.conf file is:

    ServerName the.appropriate.server.location
    

    With this configuration I have to log in with a username and a password every time I have to print (and even twice each time, the first time to get the printer settings, and the second time to effectively print).

    I precise that I am usually printing via Evince (since I print PDF files and Evince is my favorite PDF viewer).

    • How can I avoid logging in twice?
    • Is it possible not to have to log in, even once, at each printing?
  • Bruno
    Bruno almost 13 years
    Hmmm, I don't think this answers my question. Actually, if I open system-config-printer, I see the printer I use. This printer is on a Print Server which asks for authentication. Thus each time I want to print, I have to authenticate with a username and a password. And each time, I have to authenticate twice since Evince first needs to know the settings of the printer (paper size for instance), and then I re-authenticate when I effectively print. My question is: Is there a way to avoid these authentications, just as with ssh for instance. Thanks anyway!
  • desgua
    desgua almost 13 years
    I'm sorry. This steps worked for me, I don't have to authenticate. I will do some research trying to help you more.
  • desgua
    desgua almost 13 years
    Can you authenticate at command line? I'm thinking you could make an script to do this automatically.
  • Bruno
    Bruno almost 13 years
    If I use lpr at command line for instance, I get a prompt to authenticate. Thanks for your time!
  • desgua
    desgua almost 13 years
    I couldn't reproduce your problem here, I will continue to try...
  • yossile
    yossile over 12 years
    If there are multiple printers the AuthInfoRequired should be commented out for each