Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
Distribution: XP SP2, Vista, Mandrake/iva 9.2 - 2007
Posts: 50
Rep:
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?
<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>
Distribution: XP SP2, Vista, Mandrake/iva 9.2 - 2007
Posts: 50
Original Poster
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.