LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-17-2004, 01:38 PM   #1
aliiscool
Member
 
Registered: Oct 2003
Location: New Jersey
Distribution: Slackware 9.1(current tree)
Posts: 32

Rep: Reputation: 15
CUPS: Username and password.


Hi, I've been trying to get this shitty little Lexmark z25 printer my mom bought to work but when i install cups and try to configure everything using their web interface, they ask me for a username and password but i dont know where i would go to configure that..i try my root information but that doesnt work, and none of my other system passwords work. help this is prolly a really simple answer. thanks in advance.
 
Old 06-17-2004, 02:25 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
If "their webinterface" refers to http://localhost:631 then
the root account should work. If it doesn't I have no clue how
you may have screwed up.


Cheers,
Tink
 
Old 06-17-2004, 03:50 PM   #3
linuxfond
Member
 
Registered: Jan 2003
Location: Belgium
Distribution: Mandrake 9.2
Posts: 475

Rep: Reputation: 30
What error do you get? Forbidden?
Make sure your address is localhost:631 and not something like 10.0.0.1:631
 
Old 06-17-2004, 04:47 PM   #4
aliiscool
Member
 
Registered: Oct 2003
Location: New Jersey
Distribution: Slackware 9.1(current tree)
Posts: 32

Original Poster
Rep: Reputation: 15
i get no error, it just continually keeps asking for logon again and again.....
 
Old 06-21-2004, 10:29 AM   #5
zach_barrow
LQ Newbie
 
Registered: Mar 2004
Location: San Diego
Distribution: Ubuntu
Posts: 20

Rep: Reputation: 0
Actually, it may or may not be a simple answer. It probably is, and I've seen this exact question posted in forums all over the Internet, but I've never actually seen anyone who solved the problem post what they did to solve it. Maybe you changed something in the configuration file? I googled for this problem and found this high up on the search results. It's a thread from some the debian site...

> >On Thu, Feb 06, 2003 at 05:33:40PM -0700, Andreas J. Guelzow wrote:
> >
> >>On Thu, 2003-02-06 at 17:18, stan wrote:
> >>
> >>>I've got CUPS installed on my Debian machine from .debs. When I try to go
> >>>to the damin section of the web interface, I'm prompted for a username
> >>>password pair.
> >>>
> >>>Where do I look for this config?
> >>>
> >>/etc/cups/cupsd.conf
> >>
> >
> >Well, I have looked there, but if it's there, I'm overlooking it.
> >
> >A clue, perhaps?
> >
>
>
>
> In /etc/cups/cupsd.conf
> there is probably a section about Security: one of the options is
> SystemGroup
> that specifies a special unix group used under certain circumstances for
> authorization. That group may be lpadmin, but by default could be sys
> system or root.
>
> There should also be a <Location /admin>...</Location> section which
> describes the authorization required: Specifically you can restrict the
> host from which to access and the AuthType/AuthClass.
> AuthType is probably Basic
> AuthClass could be Anonymous User Group or System
>
> If the AuthClass is System than you need to specify the username and
> unix password of a user belonging to the Systemgroup specified above.
>

That makes sense, and also works.

Thanks for taking the time to explain this to me.


I would pay particular attention to the last 2 paragraphs. That seems like where your problem lies. Good luck!
 
Old 06-22-2004, 03:33 PM   #6
simpletoker
LQ Newbie
 
Registered: Jul 2003
Posts: 17

Rep: Reputation: 0
I was having this exact same problem, I was able to get to the cups main screen but it would constantly ask me for the username and password. after reading the previous post I decided to check out the /etc/cups/cupsd.conf, I changed it to say:
## Anonymous access (default)
AuthType None
AuthClass Anonymous

the AuthType was commented and the AuthClass didn't exist there (I copied it from the same file though).
then I commented the lines:
#AuthType Basic
#AuthClass System
under the <Location /admin> heading at the very bottom.
after restarting cups i was able to get my printer up and running but the admin button no longer seems to work. maybe if I play with it enough I can figure it out.

may be some one who already had cups working could post there cupsd.conf file so we can check the differences.

==============
apparently I was wrong when I earlier said that the admin stuff was no longer working. after setting up the printer and doing a test page I went back to the admin section in the cups page and it let me log in with out a problem and seems to be fine now.

Last edited by simpletoker; 06-22-2004 at 03:48 PM.
 
Old 07-15-2004, 05:51 PM   #7
eccles23
Member
 
Registered: Jun 2003
Location: Australia
Distribution: Gentoo/kernel 2.6.2
Posts: 45

Rep: Reputation: 15
I realise that this thread is a month old now, but since I came across it looking for an answer I thought I'd post how I got this working.

I also realise that my solution is a total hack - but it worked, and I didn't have time to fiddle since I needed printing to work NOW.

it also means that the people who posted about access entries in the /etc/cups/cupsd.conf are totally correct (but the changes suggested didn't help me - but I was in a rush - maybe I did something wrong)...

so here's what I did...

Code:
# mv /etc/cups/cupsd.conf /etc/cups/cupsd.conf.suse (as I am using a newly installed suse system)
# cp /path/to/other/gentoo/etc/cups/cupsd.conf /etc/cups/cupsd.conf.gentoo
# ln -s /etc/cups/cupsd.conf.gentoo /etc/cups/cupsd.conf

# ls -l /etc/cups/cups*

lrwxrwxrwx    1 root     root           17 Jul 16 08:55 cupsd.conf -> cupsd.conf.gentoo
-rw-r-----    1 root     root        21184 Jul 16 08:54 cupsd.conf.gentoo
-rw-r-----    1 root     root        21318 Jul 16 08:54 cupsd.conf.suse
so as you can see I just copied a working config file from another distro - but the important thing to note is the names I gave them - so 6 months later when I revisit the files I will know exactly what I did, and can comb through them looking for the important differences - and the active cupsd.conf can easily be switched between them by using a symbolic link... so... NEVER DELETE YOUR DISTROS OWN CONFIG FILES... just in case... and be sure to add reminders to yourself when you do introduce 'foreign' files from another distro. it can only help later when you have forgotten what you did

P.M. me if you want a copy of the gentoo file. but you can prob find a working config if you look around, now that we know it's just that causing the prob.
 
  


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
username and password no go bmd Linux - Newbie 7 04-06-2005 08:26 PM
CUPS: What URI to use when a username is needed without a password elluva Linux - Networking 0 02-26-2005 10:19 AM
username/password sailu_mvn Programming 5 12-21-2004 03:21 AM
Username and Password dance2die Arch 3 09-01-2003 03:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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