- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Cancel a print job cont'd...
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
Forums
Discussions
Discussions
Discussions
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
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-24-2001 05:01 PM
10-24-2001 05:01 PM
Cancel a print job cont'd...
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2001 05:10 PM
10-24-2001 05:10 PM
Re: Cancel a print job cont'd...
It is quite easy to set it up too. Have a look at the link from the porting centre.
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sudo-1.6.2b1/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2001 05:54 PM
10-24-2001 05:54 PM
Re: Cancel a print job cont'd...
Here is a 3 minute C program which wrappers the cancel command and allows a regular user to become super user to execute this command and then instantly revert to regular user status. This is a very simplified version of what sudo does.
compile it like this as root:
cc cancelprint.c -o cancelprint
chmod 4755 cancelprint
If you copy this file make sure that the setuid bit is preserved. For example if you copy it to /usr/bin. chown root /usr/bin/cancelprint chmod 4755 /usr/bin/cancelprint
Your users would use it like this:
(after using lpstat to get the printjob)
cancelprint printera-909 printerb-23 ...
Regards, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2001 07:01 PM
10-24-2001 07:01 PM
Re: Cancel a print job cont'd...
You have two free choices.
Install Free Sudo software and allow
the users to use the cancel command. Sudo
is easy to setup and configure.
OR
Use restricted SAM - In SAM you
can configure the cancel command as a separate
application and let users run it through
restricted SAM. It is an easy process too.
We used to do it in an earlier customer site.
But, only catch here is user would need to
run SAM just to cancel printjobs. If it
is a small number of users, it should be fine.
HTH
raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2001 02:23 AM
10-25-2001 02:23 AM
Re: Cancel a print job cont'd...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2001 04:03 AM
10-25-2001 04:03 AM