[HLUG] CUPS needs password
John Hedges
john at drystone.co.uk
Wed Jul 20 18:10:41 BST 2005
> > Hi Graham
> >
> > Your location section is the same as mine except for these linse after
> > 'AuthClass' line
> >
> > You might want to try adding them:
> >
> > ## Restrict access to local domain
> > Order Deny,Allow
> > Deny From All
> > Allow From 127.0.0.1
> >
> > If you can log on as root/passwd from a console then I don't know why
> > you cant with cups. Are there any interesting messages in
> > /var/log/auth.log /var/log/syslog /var/log/messages or /var/log/daemon
> >
> > $ls -lrt /var/log
> >
> > is a good way to see which logfiles have been appended to most recently
> > - try to log into cups and quickly do a ls to see if anything was
> > logged.
> >
> > You might also consider increasing the log output in
> > /etc/cups/cupsd.conf to debug or debug2:
> >
> > LogLevel = debug
> >
> > You will need to restart cups after making changes to the config with
> > either:
> >
> > $/etc/init.d/cupsys reload
> >
> > or
> >
> > $/etc/init.d/cupsys restart
> >
> > John
> >
> Hi John
> I found no explanations of auth failures in the various log files.
> I did the last actions and changed the LogLevel to debug.
> Also your info gave me an idea. In /cupsd.conf I commented out the lines
> AuthType Basic
> AuthClass System
>
> and removed the # from
> AuthType None
Good thinking!
> So now anyone can open the Wizard. Since no-one else tries to use my
> computer I have no security problem!
People might try when you are connected to the internet so I would
definately put the auth stuff back when you're done.
> The Wizard is simple but so am I. What should I put in the 'Location'
> box? I have typed 'local'.
I think it's just a descriptive field - for people in offices so they
know how many flights of stairs are between them and the printer.
> There is a slight snag: although I can get the wizard to appear and
> apparently work it does not enable printing. At the top of the Wizard I
> have a message in red letters: 'Administrative tasks have been disabled
> for security reasons. Please use Menu System > Administration >
> Printing.
> Another level of security coming into play?
Don't know - I haven't seen this before.
> Using this:
>
> root at localhost:/home/gc1 # cat /var/log/cups/error_log
>
> I got this:
>
> I [20/Jul/2005:16:22:15 +0100] Started
> "/usr/lib/cups/cgi-bin/admin.cgi" (pid=4779)
> I [20/Jul/2005:16:22:15 +0100] Saving printers.conf...
> I [20/Jul/2005:16:22:15 +0100] Printer 'stylus-cx' rejecting jobs ('').
> I [20/Jul/2005:16:22:26 +0100] Started
> "/usr/lib/cups/cgi-bin/printers.cgi" (pid=4782)
> I [20/Jul/2005:16:22:33 +0100] Started
> "/usr/lib/cups/cgi-bin/admin.cgi" (pid=4783)
> I [20/Jul/2005:16:22:34 +0100] Saving printers.conf...
> I [20/Jul/2005:16:22:34 +0100] Printer 'stylus-cx' now accepting jobs
> ('').
> I [20/Jul/2005:16:22:38 +0100] Started
> "/usr/lib/cups/cgi-bin/printers.cgi" (pid=4786)
> I [20/Jul/2005:16:22:53 +0100] Started
> "/usr/lib/cups/cgi-bin/admin.cgi" (pid=4790)
> I [20/Jul/2005:16:22:54 +0100] Saving printers.conf...
> I [20/Jul/2005:16:22:54 +0100] Saving classes.conf...
> I [20/Jul/2005:16:22:54 +0100] Default destination set to 'stylus-cx' by
> ''.
> Can you detect anything going wrong here?
This looks promising. What happens when you try to print? If you go to
Manage Printers and select your printer you can look at the job queue
and the completed jobs. Any clues there?
> I'm being very patient with this problem. At least I'm learning a lot as
> I go so the time is not all wasted.
Theres no other way - you'll get there in the end, and like you say,
there's no better way to learn.
John
More information about the Herefordshire
mailing list