Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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!
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.
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 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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.