- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Cancel Print Jobs...
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
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
тАО05-16-2005 11:56 PM
тАО05-16-2005 11:56 PM
Cancel Print Jobs...
We are facing problems using a "users's menu" on a HPUX 11i machine...
The users log on the System and through the "menu" they have access to do the thing... One thing the should do is to cancel print requests...
Well... We don't want to give these users high privileges. The problems is that can't cancel print requests if they are not the owner of the job...
This message is displayed:
"Job xxx not cancelled: Not Owner"
These users have a prymary group and as secondary group we put them on the "lp" group, so they should cancel the jobs don't you think?
Do you know what can I do?
Please help me!
Thanks a lot,
Rafael M. Braga
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2005 12:04 AM
тАО05-17-2005 12:04 AM
Re: Cancel Print Jobs...
http://hpux.connect.org.uk/
get sudo
Then sudoers with this command can do it
This is the only way
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2005 12:05 AM
тАО05-17-2005 12:05 AM
Re: Cancel Print Jobs...
How about a restricted sam session for oyur user ?
start sam -r and add the tasks printers and plottersto your user.
Hope this helps,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2005 12:14 AM
тАО05-17-2005 12:14 AM
Re: Cancel Print Jobs...
SInce your users are using a "users menu" driven system, install sudo and create an lpgroup with all your users in then write the script you want the users to use with root privilege using sudo
Add it to your menu script with syntax e.g
/usr/local/bin/sudo -u root -c "
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2005 12:15 AM
тАО05-17-2005 12:15 AM
Re: Cancel Print Jobs...
Steve:
In our company, the sudo is not homologated to this machine where we are facing the problems...
Robert-Jan:
I gave this suggestion to the guys that take care of security administration on the server and they refused this...
Anyway, Thanks a lot!!!
More tips?!
Rafael M. Braga
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2005 12:21 AM
тАО05-17-2005 12:21 AM
Re: Cancel Print Jobs...
-orc Restricts users to canceling only their own requests. Default is to not restrict the cancel command.
If printer queue is remote printer queue then you can recreate the queue with lpadmin omitting -orc option.
If printer queue is network printer queue created with JetDirect, then you can modify /opt/hpnpl/admin/exportvars.ksh as follows
Change
CANCELOPT="-orc"
to
CANCELOPT=""
and recreate network printer queue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2005 12:37 AM
тАО05-17-2005 12:37 AM
Re: Cancel Print Jobs...
All the printer queues are remote...
Ermin, is there a way to know if they were created with the "-orc" option, or I will have to recreated them omitting this option to test if it will help me?
Thanks,
Rafael M. Braga
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2005 12:51 AM
тАО05-17-2005 12:51 AM
Re: Cancel Print Jobs...
You should be able to tell us how /(and maybe why..) you created these printers in such way, that is NOT accepting HPUX defaults (all users can remove...).
If you didnt use exotic options then I would suspect the limitations coming from outer-HPUX
You say the are remote, are they novel queues?
(In that case the novell team has the answer...)
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2005 01:01 AM
тАО05-17-2005 01:01 AM
Re: Cancel Print Jobs...
You can simply create a test queue with
# lpshut
# lpadmin -p
# lpsched
and verify that without -orc option anyone can cancel print jobs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2005 03:26 AM
тАО05-17-2005 03:26 AM
Re: Cancel Print Jobs...
/opt/hpnpl/admin/addptrtoq
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2005 04:29 AM
тАО05-17-2005 04:29 AM
Re: Cancel Print Jobs...
I am attaching a quick and dirty perl script that was provided for the helpdesk personnel. They do not have the extra system rights and they do not want/need. They can cancel any print job thru the use of sudo.
I have not received 1 request to cancel a print job since!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2005 07:22 AM
тАО05-17-2005 07:22 AM
Re: Cancel Print Jobs...
I created a printer queue using the SAM utility...
I used it because I asked the guy who created the queues that are with problems how he didi it.... He told me that he used SAM...
So I used SAM too... There I found an option:
"[ ] Allow Anyone to Cancel a Request"
Then I deleted and recreated one of the queues with problem... And set this option to true...
Now it's working!!
I have one more question!
Is there a way to modify the queue without the needing of deletes and recreate it?
Thanks,
Rafael M. Braga
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2005 09:07 AM
тАО05-17-2005 09:07 AM
Re: Cancel Print Jobs...
Interesting thing is, with hppi, if invoked via the TUI, it adds a printer like so:
lpadmin -pW052 -v/dev/null -i/opt/hpnpl/sh/net_genericprinter
Via the command line, it uses the addqueue command.
lpadmin makes use of the CANCELOPT="" in the addptrtoq script....
Seems to be no way to pass the info to the addqueue command...
Also - I can NOT find anything in the /etc/lp/interface/
Rgds...Geoff