- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Remove 'restrict cancel' feature from a print queu...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-15-2009 03:44 AM
тАО10-15-2009 03:44 AM
Remove 'restrict cancel' feature from a print queue?
I've just noticed that one of those queues has been setup with the restricted cancel option on (equivalent of 'lpadmin -orc') which means that only the owner of the print job can cancel the job.
Therefore I have a couple of questions that man pages and Google haven't answered...
1. Is it possible to remove this option from a queue without recreating the queue?
2. Also I want to find out how many of our printers have been setup this way, how can I see whether a printer has this option set?
Chz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-16-2009 12:58 AM
тАО10-16-2009 12:58 AM
Re: Remove 'restrict cancel' feature from a print queue?
I couldn't see the info from lpstat -t.
If you are on 11.31 (or possibly later?), you can do:
lpadmin -pprinter -orc n
But you have to stop the spooler. (This doesn't seem to be true on 11.31?)
Perhaps there you just use: lpadmin -pprinter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-16-2009 01:26 AM
тАО10-16-2009 01:26 AM
Re: Remove 'restrict cancel' feature from a print queue?
The script uses 'cancel' to cancel a job, yesterday I was made aware that they couldn't cancel jobs on one specific queue.
When I tried with the cancel command I got the following error...
request "printername-1234" not cancelled: not owner
... so I had to cancel it as root.
However I may have found a workaround but as yet I'm unsure of it's success as it just one print queue.
Otherwise I haven't found any definitive way of finding out if cancel restrictions has been set on a queue.
Anyway this workaround I think I've found is to do with a variable I found in /hpnpl/admin/exportvars.ksh. If run it exports some printer related variables, one being the CANCELOPT variable which the script declared as...
CANCELOPT="-orc"
... however I don't think this script ever gets run.
I've done a little test this morning and added...
CANCELOPT=""
... to my script disabled the print queue, queued up a bunch of jobs on it and the helpdesk staff was able to cancel my print jobs.
Any clarifications of the validity of this variable would be appreciated.
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-16-2009 01:38 AM
тАО10-16-2009 01:38 AM
Re: Remove 'restrict cancel' feature from a print queue?
It this is being passed to lpadmin to recreate the printer, this may undo the -orc as I suggested.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-16-2009 01:48 AM
тАО10-16-2009 01:48 AM
Re: Remove 'restrict cancel' feature from a print queue?
go to
#cd /var/spool/lp/request/
Here you will find the printer name for example lpexample
#cd lpexample
Here you will get some file like .sendingstatus and .remotestatus as well some file for printer q. If you remove that files your printer q will go.
for safe you can take backup of that directory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-19-2009 05:43 AM
тАО10-19-2009 05:43 AM