adding printer, Authentication adding printer username password
Solution 1
OK, I figure out, that this is the request of a CUPS server authentication, which by default, has a value basic
in config. And you have to switch it off by doing the following:
- sudo nano /etc/cups/cupsd.conf
- change the value
DefaultAuthType
toNone
- sudo service cups restart
No authentication required anymore
Solution 2
In Ubuntu 19.10 a new problem arises with the previous solution stated, where there is no longer a password being requested but the window freezes.
After digging around I found this solution: https://unix.stackexchange.com/a/513983/386631
Taking from the answer:
- Open the file
/etc/cups/cups-files.conf
. - Find the group name at the line containing
SystemGroup
(in Ubuntu it should belpadmin
). - Add yourself to that group (
sudo usermod -a -G lpadmin your-username
) - Apply it (
sudo service cups restart
).
There will still be an authentication dialog, but now if you put your PC's username and password it works.
Related videos on Youtube
zhukovgreen
Updated on September 18, 2022Comments
-
zhukovgreen almost 2 years
I am adding the printer from the windows network via samba.
All seems fine: - I can authenticate the access to the domain, - I can see all the printers there. - Adding ppa file, which I download from the printer manufacturer website
But I stuck in the last point when I click apply button and see another authentication window which asks just Username and Password (without domain).
I tried everything and nothing works:
- Adjust smbd config to have by default the domain name, which I need
- {user}@{domain}
- {user}/{domain}
- {domain}/{user}
- {user}
Access to cups server works on localhost:631.
-
0x539 over 4 years3. should read
sudo service cups restart
... nos
at the end ofservice
-
Juan Matias Granda over 4 yearsGood suggestion 0x539. I edited the answer.
-
poomerang about 4 yearsEven after following these steps and restarting the system, I keep receiving an authentication error when trying to print (a test page). Any suggestions?
-
zhukovgreen about 4 years@poomerang hello. This answer resolves the authentication dialog problem.
-
poomerang about 4 yearsas I said, not for me: the print job is "Held for authentication" anyway and there is no combination of user+password that works
-
oᴉɹǝɥɔ about 4 yearsThis also works in 20.04. Authentication dialog no longer pops up after signing out of desktop environment and signing back in.
-
robomc almost 4 yearsNote that for me, on 20.04, this was the solution but the accepted answer also caused no harm. i.e. I didn't need to change the DefaultAuthValue back for it to work.
-
Xzu almost 4 yearsDon't work for me with 20.04, and I'm in the lpadmin group, still ask login and password.
-
Ilya Bystrov over 3 yearsI don't think that removing auth check is a good approach.
-
Wirone about 3 yearsAdding user to
lpadmin
did the trick on Ubuntu 20.10, thanks! -
Mark over 2 yearsIts almost like you need a advanced degree to add a printer.