You are not logged in.
Pages: 1
Hi,
I have installed CUPS on my new laptop and added my user to the sys group. The root account is disabled and I'm using sudo. When trying to click on the "Add Printer" button at the CUPS web interface (localhost:631) I instantly get this error:
Unauthorized
Enter your username and password or the root username and password to access this page. If you are using Kerberos authentication, make sure you have a valid Kerberos ticket.
Has anyone an idea whats wrong configured?
Offline
Behold the omniscient wiki
https://wiki.archlinux.org/index.php/CU … _PolicyKit
Edit: BTW, why disable the root account? I don't allow it to connect except at the console. I seem to recall that was the default configuration for at least one of the Arch forks ... but I digress.
Last edited by ewaller (2018-03-31 16:00:56)
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
One problem ewaller, the wiki is currently wrong due to a recent change.
Johannes, please pay attention to pacman output, you should have see the following notice in the last update of cups:
https://git.archlinux.org/svntogit/pack … d27004b010
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Fair enough.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
@johannesg00 if cups config's have been updated when you click on add printer on the cups web management page there is no prompt for login the response is to immediately generate a page with the error message you quoted?
Offline
@johannesg00 if cups config's have been updated when you click on add printer on the cups web management page there is no prompt for login the response is to immediately generate a page with the error message you quoted?
Yes exactly, so I can't even log in as root.
I reinstalled the package and checked for the right file system permissions, but everything seems to be ok...
Edit: It seems to be a bug related to chromium, with firefox everything works as expected.
Last edited by johannesg00 (2018-04-01 07:29:28)
Offline
I can confirm that. Chromium does not show the HTTP basic login popup. Firefox does.
Offline
Yeah, I'm having this issue as well, only occurs with Google Chrome. When opening via epiphany or firefox works fine.
Tried to mess around with DefaultAuthType but no luck there too.
Funnily enough, when clicking View Access Log it prompts for the basic-auth login.
It has something to do with Chrome/Chromium I believe.
Offline
Same problem with Cups using Chromium.
Firefox works fine.
XFCE4 under Arch on Honor MagicBook
Offline
I also have the same issue using either chrome or chromium. There's a hack fix:
Edit "/etc/cups/cupsd.conf"
Change:
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>
To:
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
AuthType None
# AuthType Default
# Require user @SYSTEM
Order deny,allow
</Limit>
sudo service cups restart or restart
Offline
For reference: https://bugs.archlinux.org/task/58247
Offline
Pages: 1