Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Allowing a user to cancel any print job - how?

Status
Not open for further replies.

sjwales

MIS
Jun 24, 2003
61
US
We have a helpdesk that often gets calls to cancel print jobs. At present, they need to call down to the SA team to have it done.

We'd like to be able to set up a shell account called 'helpdesk' that will have the ability to cancel any print job.

Was wondering if anyone has any ideas on this one?

I tried adding the user to the lp group, but that didn't work. I don't want to modify all the print queues so that anyone can cancel a job on the printers.

I just want this one user to be able to cancel any job on any printer.

Anyone able to offer pointers here?

Thanks
Steve
 
Have you thought about using sudo to give that one user root priveleges for canceling print jobs?
 
this is an old question.
for what it is worth.
every use can cancel ervery printjob in HPUX.
just type:
cancel printer-name (not the jobname)
and it will cancel the first printjob of that que.

repeating cancel printer-name several times
will delete 1 printjob a time.


Regards Gregor.
 
SUDO is a good choice. Other option is to add this user to the group 'lp'. This will give the user the ability to cancel any print job(s) and also allow the user to do other tasks related to printing system, i.e., add printer to system.
 
The whole process is as follows:

1. First find out the printer-job to be cancelled by using the following command at shell prompt:
#lpstat -t

This command will show you the printer job in the queue.

2. Cancel the printer job by using the following command:

cancel printer-jobnumber

This will cancel the particular job on that printer





Hanwant Verma
Software Developer/Analyst
London (UK)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top