Operating System - HP-UX
1753468 Members
4657 Online
108794 Solutions
New Discussion юеВ

Re: Cancel other users printjob

 
CPHVF-U Guard
Advisor

Cancel other users printjob

Hi,
When I try to cancel printjob's created by another user like:
hostname:cancel PRINTER -uOTHER-USER

I get:
cancel: You must have root capability to use this option

In man 1 cancel:
Only users with appropriate privileges can use this option.

How do I get "appropriate privileges"?
5 REPLIES 5
James R. Ferguson
Acclaimed Contributor

Re: Cancel other users printjob

Hi:

When you build the printer with SAM or with 'lpadmin' you have the option of specifying that any user can cancel a print request. The default behavior is *not* to allow anyone to cancel.

...JRF...
CPHVF-U Guard
Advisor

Re: Cancel other users printjob

OK thanks,

How can I see if "-orc" is enabled?
How can I disable "-orc"

man 1M lpadmin:
-orc Restricts users to canceling only their own requests. Default is to not restrict the cancel command.

I just can't find the oposite option.
Ravi_8
Honored Contributor

Re: Cancel other users printjob

#lpstatus printer_name
gives u the id's the printer has to do.
#cancel id
cancel that printer job
never give up
James R. Ferguson
Acclaimed Contributor

Re: Cancel other users printjob

Hi again:

I've always used SAM to build and/or rebuild my printers. For remote printers you could try: 'lpadmin -pprintername -ocmrcmodel'.

...JRF...
Sachin Patel
Honored Contributor

Re: Cancel other users printjob

Hi
If you are using jetdirect.
run jetadmin then select 1 and 5 and select the printer queue. you can change option from no to yes.

Sachin
Is photography a hobby or another way to spend $