HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Allow user to cancel print jobs
Operating System - HP-UX
1833914
Members
2150
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
11-29-2005 07:43 AM
11-29-2005 07:43 AM
Allow user to cancel print jobs
I have a user account that I would like to give certain print commands to. I've set up sudo for the account but the user doesn't seem to be able to cancel print jobs with the (hdlp) account.
sudo file:
----------
Cmnd_Alias PRINTING = /usr/sbin/lpsched, /usr/sbin/lpshut, /usr/bin/cancel *
hdlp ALL = NOPASSWD: PRINTING
sudo file:
----------
Cmnd_Alias PRINTING = /usr/sbin/lpsched, /usr/sbin/lpshut, /usr/bin/cancel *
hdlp ALL = NOPASSWD: PRINTING
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2005 07:54 AM
11-29-2005 07:54 AM
Re: Allow user to cancel print jobs
Hi,
Just try removing that * followed by the cancel. Arguments need not to be specified in the sudo file.
Just a thought
HTH,
Devender
Just try removing that * followed by the cancel. Arguments need not to be specified in the sudo file.
Just a thought
HTH,
Devender
Impossible itself mentions "I m possible"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2005 07:58 AM
11-29-2005 07:58 AM
Re: Allow user to cancel print jobs
An example entry. Those users are part of the helpdesk and are in a specific group - helpdesk.
They are allowed to accept, reject, cancel, cancel all, etc. With no passwd for these commands
%helpdesk ALL=NOPASSWD:ALL, /usr/sbin/accept,/usr/sbin/reject,/usr/sbin/lp
sched,/usr/bin/cancel,/usr/bin/cancel -e,/usr/bin/cancel
They are allowed to accept, reject, cancel, cancel all, etc. With no passwd for these commands
%helpdesk ALL=NOPASSWD:ALL, /usr/sbin/accept,/usr/sbin/reject,/usr/sbin/lp
sched,/usr/bin/cancel,/usr/bin/cancel -e,/usr/bin/cancel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2005 08:02 AM
11-29-2005 08:02 AM
Re: Allow user to cancel print jobs
Another option is to use restricted SAM. Not as popular as sudo, but it should work. It also has the benefit(?) of a gui interface for non-command line users.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP