You are not logged in.

#1 2018-03-31 08:54:40

johannesg00
Member
Registered: 2010-11-30
Posts: 74

Can't log into CUPS

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

#2 2018-03-31 15:58:23

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,257

Re: Can't log into CUPS

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 ... hmm   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

#3 2018-03-31 16:44:57

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,330
Website

Re: Can't log into CUPS

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

#4 2018-03-31 17:09:08

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,257

Re: Can't log into CUPS

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

#5 2018-03-31 19:45:03

loqs
Member
Registered: 2014-03-06
Posts: 18,123

Re: Can't log into CUPS

@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

#6 2018-04-01 07:26:51

johannesg00
Member
Registered: 2010-11-30
Posts: 74

Re: Can't log into CUPS

loqs wrote:

@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

#7 2018-04-01 16:38:51

jsnlry
Member
Registered: 2012-06-26
Posts: 39

Re: Can't log into CUPS

I can confirm that. Chromium does not show the HTTP basic login popup. Firefox does.

Offline

#8 2018-04-01 16:39:10

esauvisky
Member
Registered: 2014-06-23
Posts: 11

Re: Can't log into CUPS

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

#9 2018-04-15 08:56:12

Fixed
Member
Registered: 2005-08-09
Posts: 210

Re: Can't log into CUPS

Same problem with Cups using Chromium.

Firefox works fine.


XFCE4 under Arch on Honor MagicBook

Offline

#10 2018-04-20 05:18:45

verndog
Member
Registered: 2007-09-21
Posts: 55

Re: Can't log into CUPS

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

#11 2018-04-20 13:10:56

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: Can't log into CUPS

It was fixed for me with the last update a few days ago (on mobile...don't have the version #).

Offline

#12 2018-04-20 13:55:34

foutrelis
Developer
From: Athens, Greece
Registered: 2008-07-28
Posts: 705
Website

Re: Can't log into CUPS

Offline

Board footer

Powered by FluxBB