Operating System - HP-UX
1834252 Members
1915 Online
110066 Solutions
New Discussion

change printer cancel-behaviour

 
SOLVED
Go to solution
CPHVF-U Guard
Advisor

change printer cancel-behaviour

Hi.

My printers are all created with the
lpadmin "-orc" option.
eg. users can only cancel their own jobs.

I want to change that, so all users can cancel all jobs.
I have several servers and lots of printers, which all should be changed. How can I do that.

As I see it, I have to delete the printer then create it again. (that is not a solution)

Which file should I change?
I created 2 printers: one whith- and one whitout "-orc".
I can't find the difference ... Where is it?
5 REPLIES 5
Tracey
Trusted Contributor

Re: change printer cancel-behaviour

I think it should be in the files in /etc/lp/interface and/or /etc/lp/interface/model.orig

Have you compared those files?
CPHVF-U Guard
Advisor

Re: change printer cancel-behaviour

$ cd /etc/lp/interface
$ ll
-rwxr-xr-x 1 lp lp 10985 test1
-rwxr-xr-x 1 lp lp 10985 test2
$ diff test1 test2
$

No diff.
Victor_5
Trusted Contributor

Re: change printer cancel-behaviour

Most likely, when you set up the printer as a spooler printer, you specified the interace/model. When you did this, a script was copied from the /usr/spool/lp/model into the /usr/spool/lp/interface. The script is executed whenever you use the lp command and specify output on this priter.

If you take a look at the script, you can see the commands and escape sequences it uses to set up the printer for output.

The scripts in /usr/spool/lp/model should NOT be modified, as they are replaced by updates. However, you are welcome to customize
the scripts in the /usr/spool/lp/interface directory. Read the comments in the script for instructions on modifying the file and on specifying overriding options dynamically at print time.

As you scan through the script, you will see one section of comments that tells you how to modify the script.


Andreas Voss
Honored Contributor
Solution

Re: change printer cancel-behaviour

Hi,

the configuration is stored in the file
/var/spool/lp/pstatus
BUT this file is binary so you cannot change it !

Regards
CPHVF-U Guard
Advisor

Re: change printer cancel-behaviour

Thanks,

I have to delete all printers, then install them again? Or ....