- Username/Password for CUPS (SuSE9)
- Posted by David Haggett on November 19th, 2003
This is mad.
Under RH8 i could browse to http://localhost:631/ click on the "Configure
Printer" link and log in as root to configure the print driver. Since
migrating to SuSE 9, I can't log in to CUPS using the root password.
I've tried both "localhost" and "127.0.0.1" but neither will allow me to
log into the cups interface. The printer configuration page in yast
doesn't allow me to set the options I want too (dpi) but I remember that
the cups configuration page did.
Is there a setting I have to amend somewhere to allow me to log in to the
cups interface?
--
David Haggett
Linux user since 01/01/2003
Email: david<at>haggett<dot>demon<dot>co<dot>uk
- Posted by Molchun on November 19th, 2003
David Haggett wrote:
Of course, you can't! Why would you?
What have the system passwords got to do with the HTTP passwords?
Exactly, nothing!
I assume you've read the CUPS docs before asking?
If yes, read again.
Yes.
--
Jabber: molchun@jabber.org
PGP ID: 0x304563A8
- Posted by David Haggett on November 20th, 2003
On Wed, 19 Nov 2003 10:21:12 +0000, Molchun wrote:
Because I could in Redhat, with no specific configuration.
OK, I've read it again.
I am in the sys group, root is in the sys group. The admin group in
cupsd.conf is "sys". The following is an extract from my cupsd.conf
file. I have also tried commenting out the "Deny From All" rule, and
it made no difference.
<Location /admin>
AuthType BasicDigest
AuthClass Group
AuthGroupName sys
## Restrict access to local domain
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
#Encryption Required
</Location>
Many thanks for your frank and open assistance. If I could have
some suggestions now?
--
David Haggett
Linux user since 01/01/2003
Email: david<at>haggett<dot>demon<dot>co<dot>uk
- Posted by Molchun on November 20th, 2003
David Haggett wrote:
Don't know anything about RH, maybe their default cupsd.conf is not very
restrictive. And the default config file that comes with cups source is not
restrictive. Here is the default Location directive:
--- cut ---
<Location /admin>
#
# 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 Basic
AuthClass System
## Restrict access to local domain
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
#Encryption Required
</Location>
--- cut ---
with this default you should be OK and you should have access if you're part
of sys group. Note the AuthType!
AuthType directive is set to BasicDigest which means cups does not use
system password file to authenticate, instead it uses by default /etc/cups
passwd.md5. Did you add users to this file?
Or you could try and set it to basic to use UNIX passwd file, or even to
none if you feel adventures
.
Read what AuthClass parameters do, you might play with that too or even set
it to anonymous.
I tried my best 
--
Jabber: molchun@jabber.org
PGP ID: 0x304563A8