Authentication at CUPS web interface
When I try to perform any administrative task on CUPS web interface I get pop-up window that requires me to authenticate at CUPS. Authenticating both as root and as a my user fail, even though my user is added to the lpadmin group as described in:
CUPS Print Server guide
Any idea what can be wrong or how I debug it?
Solution 1:
Comparing your cups.conf file, I only see a few differences:
- You've replaced
Port 631
byListen localhost:631
to prevent remote administration -
You've removed
Allow @LOCAL
three times:DefaultAuthType Basic <Location /> Order allow,deny - Allow @LOCAL </Location> <Location /admin> Order allow,deny - Allow @LOCAL </Location> <Location /admin/conf> AuthType Default Require user @SYSTEM Order allow,deny - Allow @LOCAL </Location>
Re-add those lines or you'll be unable to open CUPS. After adding yourself to the lpadmin
group, you need to restart CUPS due to the way groups work. That can be done with:
sudo restart cups
Solution 2:
According to this post: http://comments.gmane.org/gmane.comp.printing.cups.general/28081, it could come from the fact that you have several instances of CUPS running.
Check it by using this command:
ps -e | grep -U cups
If you find two instances, kill them using: (sudo is required since cups is run at the root level)
sudo kill -9 {pid}
With {pid} being number of the instances given by the ps command.
Then restart cups:
sudo restart cups
Hope this can help.