Disabling password authentication with cancelcommand?

Joakim Nyberg joakim.nyberg at kolumbus.fi
Fri May 19 00:34:28 PDT 2006


> joakim.nyberg at kolumbus.fi wrote:
> >
> >>L�hett�j�: Till Kamppeter <till.kamppeter at gmx.net>
> >>P�iv�ys: 2006/05/18 to AM 11:20:49 EEST
> >>Vastaanottaja: Joakim Nyberg <joakim.nyberg at kolumbus.fi>
> >>Aihe: Re: Disabling password authentication with cancel command?
> >>
> >>Joakim Nyberg wrote:
> >>
> >>>Thank you, I have now updated to CUPS 1.2. I am trying to figure out how to set a policy for allowing the cancellation of jobs by a non-root user with the command line command cancel.
> >>>I am not sure but is the "Policy" section in cupsd.conf only for the webinterface or does it also affect the command-line commands?
> >>>Any hints on how to set the policy would be great!
> >>
> >>It also affects the command line commands. You can get even easier to
> >>non-restricted job-canceling. Go into the web interface
> >>(https://localhost:631/) and click the "Adminitration" tab. Then you
> >>find five check boxes on the right to configure the CUPS daemon. Check
> >>the one which allows everyone to cancel everone's jobs and click the
> >>button to submit the changes. When asked for login and password enter
> >>"root" and the root password. CUPS is restarted automatically and from
> >>now on there should be no authentication any more for canceling jobs.
> >>
> >>   Till
> >>
> >
> >
> > Thank you for your mail.
> > Yes, I located the checkbox in the web interface but it was allready checked. I tried unchecking and checking it again but to no avail. It still asks:
> > XXX at YYY:~/temp$ lpstat
> > ZZZ-150               XXX              99328   Thu 18 May 2006 11:28:25 AM EEST
> > XXX at YYY:~/temp$ cancel -a
> > Password for XXX on localhost?
> >
> > And the odd thing is that when I provide my password for user XXX it does not accept it. Everything is local (printer, user logged on, etc.), could that affect something?
> > I am also trying to understand how I could set a policy in the cupsd.conf to allow purging of jobs but it seems to go over my head.
> > Any suggestions?
> > Thank you for your help!
> >
> > Joakim
> >
> >
>
> I backpost this to the list. Please always "reply to all" when answering
> list mail.
>
>    Till
>

Well I have been fiddling around with the configuration file but to no success. I have tried to alter the following lines in the cupsd.conf file -->

-------------
# Only the owner or an administrator can cancel or authenticate a job...
  <Limit Cancel-Job CUPS-Authenticate-Job>
   Require user @OWNER
   Order deny,allow
  </Limit>

  <Limit All>
    Order deny,allow
  </Limit>
</Policy>
-------------

I have now managed to make the cancel -a command ask for a password for -->
XXX at YYY:~/temp$ cancel -a
Password for XXX on /var/run/cups/cups.sock?
cancel: purge-jobs failed: Unauthorized
What is cups.sock and why does it want a password for that?
I feel a little lost at the moment.
Anyone have a suggestion to the problem?
Thank you.

Regards,
Joakim Nyberg




More information about the cups mailing list