Operating System - HP-UX
1833914 Members
2150 Online
110063 Solutions
New Discussion

Re: Allow user to cancel print jobs

 
Kim Kendall
Regular Advisor

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
3 REPLIES 3
Devender Khatana
Honored Contributor

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
Impossible itself mentions "I m possible"
Rick Garland
Honored Contributor

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
DCE
Honored Contributor

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.