Operating System - Linux
1754869 Members
6048 Online
108827 Solutions
New Discussion юеВ

Re: CUPS command line utility help needed

 
Debbie Fleith
Regular Advisor

CUPS command line utility help needed

Two questions.
1. Is there an equivalent "cancel -a printer-name" HP-UX command that can be used under Linux CUPS which will cancel all print jobs for a given printer?

2. How can I configure a CUPS printer under Linux to allow other users to cancel any other users' print jobs?

4 REPLIES 4
Mike Stroyan
Honored Contributor

Re: CUPS command line utility help needed

Cups does have a "cancel -a dest" feature.

The ability to cancel jobs is configured in /etc/cups/cupsd.conf. Look for a

section. See "man cupsd.conf" for information on the file syntax.
George Liu_4
Trusted Contributor

Re: CUPS command line utility help needed

1. cancel [ -a ] [ -h server ] [ -u username ] [ id ] [ destination ] [ destination-id ]

2. use webinterface http://localhost:631/ to do administrative jobs
Debbie Fleith
Regular Advisor

Re: CUPS command line utility help needed

Right now, I can't use cancel -a unless I'm the root user.

I checked my man page on cupsd.conf but it wasn't specific. Does anyone know exactly what syntax and what section to make changes in the cupsd.conf file to enable other users to be able to cancel print jobs?
George Liu_4
Trusted Contributor

Re: CUPS command line utility help needed

You can't cancel other user's job.

You can lpstat to get your job id
and then
cancel the job id

If you want to use -a option, you may set up sudo to do that