LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-29-2005, 07:57 AM   #1
AcerKev
Member
 
Registered: Aug 2003
Location: Nottingham
Distribution: XP SP2, Vista, Mandrake/iva 9.2 - 2007
Posts: 50

Rep: Reputation: 15
Cancelling Jobs in CUPS


Server : fully updated Mandrake 9.1 (i586) with supplied cups version

I am trying to work out a way to let anyone (on the local subnet anyway) cancel jobs though CUPS.

At the moment when you cancel a job you get "Client Error Forbidden" unless you first login as root (the servers account - when the servers password changes the one for CUPS does) by clicking "Admin"

I can get this prompt on the jobs screen by adding the lines

AuthType Basic
AuthClass System

to the <jobs></jobs> section in the cupsd.conf file, but that doesn't really help.

Ideally anyone in the office would be able to cancel jobs (we don't need user level control for cancelling and as the jobs arn't cachéd after printing the "restart job" option isn't a security issue anyway. However we only want the Root user to be able to setup printers, start them etc.

Ideally users would be able to open the printer spool list in the windows xp control panel - however they can view the jobs but NOT cancel them - cancelling them in the dialogue box does naff all. [no errors, no cancelled job] (Due to network authentication being Netware all the xp desktops have the same username in Windows)

Does anyone know how to configure cups to allow that?

If we can't get that to work a kjobviewer type app for Windows would be ideal (can I used the CUPS API's with MS.NET? If so anyone got any links showing how to list and cancel jobs?) or know of any apps that do that?
 
Old 12-29-2005, 09:41 AM   #2
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,499
Blog Entries: 2

Rep: Reputation: 68
My jobs section looks like this:

<Location /jobs>
#
# You may wish to limit access to job operations, either with Allow
# and Deny lines, or by requiring a username and password.
#
AuthType None
AuthClass Anonymous
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
Allow From 127.0.0.2
Allow From @LOCAL
</Location>

enjoy !
 
Old 12-29-2005, 01:54 PM   #3
AcerKev
Member
 
Registered: Aug 2003
Location: Nottingham
Distribution: XP SP2, Vista, Mandrake/iva 9.2 - 2007
Posts: 50

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by marozsas
My jobs section looks like this:

<Location /jobs>
#
# You may wish to limit access to job operations, either with Allow
# and Deny lines, or by requiring a username and password.
#
AuthType None
AuthClass Anonymous
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
Allow From 127.0.0.2
Allow From @LOCAL
</Location>

enjoy !
I'll check that out next year, I'd come across the AuthType None before, but not the AuthClass Anonymous - hopefully that line will do the trick.
 
  


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 - deleting print jobs mikejd Linux - Software 11 05-15-2007 08:48 AM
Issue cancelling jobs with cups Maldain Mandriva 2 03-01-2005 10:08 AM
cups aborts print jobs sneak Linux - Software 0 11-09-2004 04:45 PM
Problems with cups duplicating print jobs mmdem239 Linux - Newbie 0 11-03-2004 02:53 PM
Keep a record of print jobs with cups exodist Linux - Software 3 11-02-2004 04:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:19 PM.

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