LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-26-2006, 11:46 AM   #1
Robhogg
Member
 
Registered: Sep 2004
Location: Old York, North Yorks.
Distribution: Debian 7 (mainly)
Posts: 653

Rep: Reputation: 97
CUPS does not accept my username/password


Hi, all.

I accessed the CUPS management page via my web browser on 127.0.0.1:631, and clicked on the "Do Administration Tasks" link. I was asked to log in, but none of the username / password combinations I've tried have worked (current user, root user, lp with either of these passwords, current user with root password, any of the above with no password, etc).
  • I've not set a particular password for CUPS - is there a default login?
  • Is lp (an account listed in my passwd file) associated with CUPS?
  • Would it be safe to set / reset a password for this account?

Thanks,

Rob
 
Old 02-26-2006, 12:06 PM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
For the administrative access, CUPS will accept you username/password if the username is in the "sys" or "root" group by default. So, the "root" account should be able to login. The fact that it didn't for you, means that the default might have been changed by your distro's vendor. Look in
Code:
/etc/cups/cupsd.conf
fle for the line
Code:
#SystemGroup sys
. There might already be an explicit group definition below that (without the '#' commant sign at the start of the line), check what group it mentions and add yourself to that group.

The account "lp" is indeed used by CUPS but it is not an account that you can (or should) login to. So, better not to set a password for it, either.

Eric
 
Old 02-26-2006, 12:50 PM   #3
Robhogg
Member
 
Registered: Sep 2004
Location: Old York, North Yorks.
Distribution: Debian 7 (mainly)
Posts: 653

Original Poster
Rep: Reputation: 97
Thanks for the answer, but I'm afraid I'm still having no luck.

The SystemGroup line that you mentioned is set to lp rather than sys, though this is commented out:
Code:
#SystemGroup lp
Further down in /etc/cups/cupsd, I found the following lines:
Code:
# You definitely will want to limit access to the administration functions.
# The default configuration requires a local connection from a user who
# is a member of the system group to do any admin tasks.  You can change
# the group name using the SystemGroup directive.
#

AuthType BasicDigest
AuthClass Group
AuthGroupName sys
However, I've tried adding root to both the sys and the lp groups in /etc/group, but CUPS is still not letting me log in (even after I restart it).

Rob

PS I tried un-commenting the SystemGroup line in cupsd.conf, but this didn't work either.

Got an aspirin?

Last edited by Robhogg; 02-26-2006 at 01:02 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CUPS username and password ccin1492 Linux - Software 14 01-15-2021 10:37 AM
Apache does not accept username/password logicalfuzz Linux - Software 16 01-06-2006 03:54 AM
CUPS: What URI to use when a username is needed without a password elluva Linux - Networking 0 02-26-2005 10:19 AM
su doesn't accept my password CGameProgrammer Linux - General 7 10-13-2004 12:07 PM
CUPS: Username and password. aliiscool Linux - Software 6 07-15-2004 05:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration