LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   CUPS username and password (https://www.linuxquestions.org/questions/linux-software-2/cups-username-and-password-156986/)

ccin1492 03-12-2004 11:50 PM

CUPS username and password
 
Hi,

If if pull up http://localhost:631 and go to admin it ask for a username and password. I've tried my user account and root, but it doesn't seem to like either. Which username and password is it looking for?

Thanks in advance,
TC

tk31337 03-13-2004 12:01 AM

Not a CUPS guru, but you might try looking in /etc/cups/cupsd.conf for some useful options.

contrasutra 03-13-2004 12:09 AM

It's looking for your root password.

The username should be exactly "root" and the password should be your normal root password.

ccin1492 03-13-2004 11:28 AM

Quote:

Originally posted by contrasutra
It's looking for your root password.

The username should be exactly "root" and the password should be your normal root password.

That's what I thought as well. But it doesn't accept it!

ccin1492 03-13-2004 02:28 PM

Ok, here's whar I found in /var/log/cups/error_log:

E [13/Mar/2004:10:58:11 -0800] Unable to open /etc/cups/passwd.md5 - No such file or directory
E [13/Mar/2004:10:58:11 -0800] IsAuthorized: No matching user:group for "root" in passwd.md5!
E [13/Mar/2004:10:58:42 -0800] Unable to open /etc/cups/passwd.md5 - No such file or directory
E [13/Mar/2004:10:58:42 -0800] IsAuthorized: No matching user:group for "root" in passwd.md5!

ok, why is looking for passwd.md5?

Chris H 03-13-2004 03:08 PM

ccin dunno if you're using Suse 9.0 but if you are then the CUPS password is an encrypted one. A search of their site will explain it all.

ccin1492 03-13-2004 03:12 PM

Yes, I am using Suse 9.0. I'll check it out. Thanks!

Chris H 03-13-2004 03:59 PM

Here we go, link belwo shows you what to do.

http://portal.suse.com/sdb/en/2003/0...ichten-90.html

ccin1492 03-13-2004 11:27 PM

After checking out that link, I discorvered I needed to run the following command:

lppasswd -g sys -a root

That did the trick. Thanks Chris!

TC

senguttuvan 08-29-2009 01:58 AM

root password is enough
 
When i was facing the same problem,

I used my

Username = root user name
password = root password

and it is working fine now!

Geremia 12-18-2015 02:48 PM

Change some things in your /etc/cups/cupsd.conf file:

Change the authentication type to "None".
Remove any lines that have "@SYSTEM" in it.
Restart the CUPS daemon.

Felim_Doyle 07-02-2018 10:40 AM

CUPS username and password
 
Thanks Geremia!

Your solution still works with CUPS 2.1.3 on Linux Mint 18.3.

I changed the authentication type to "None" and selectively commented out "@SYSTEM" references so as not to completely compromise security (i.e. a job can still only be cancelled by the owner or root).

BobKay 02-03-2019 01:26 PM

I just enabled CUPS on my Slackware 14.2 system. I then connected via web browser to localhost:631. Under the "Administration" tab I clicked "Add printer", at which point it asked me for a username and password. I mistakenly entered my normal username & password instead of root's credentials. Of course it wouldn't let me perform any administrative tasks. The problem is that I can't figure out how to log out so I can log in properly as root. Does anyone know how to log out of CUPS?

mwycliff 01-14-2021 01:09 PM

Geremia's solution worked -- CUPS username and password
 
Geremia's solution worked. Thank you Geremia. You da man!

DavidMcCann 01-15-2021 10:37 AM

Quote:

Originally Posted by BobKay (Post 5957292)
I mistakenly entered my normal username & password instead of root's credentials. Of course it wouldn't let me perform any administrative tasks. The problem is that I can't figure out how to log out so I can log in properly as root. Does anyone know how to log out of CUPS?

Been there, done that! Try just closing the tab and then closing the browser — that should give CUPS the message that you want it to quit, and then start over again.


All times are GMT -5. The time now is 03:26 PM.