Operating System - HP-UX
1824218 Members
3878 Online
109669 Solutions
New Discussion юеВ

HP-UX 11.0 print to file problem

 
Chris Owens
New Member

HP-UX 11.0 print to file problem

I have an application that sets up it's own printer queues to convert from it's internal format to postscript (which it then typically forward to the real unix postscript printer queue). This application allows me to "print to a file". When you do this on our non-HP workstations, the file output ends up with the owner & group of the user. When I try to do the same thing on our HP-UX workstations, the file output ends up with owner & group of "lp". I'm thinking that somewhere along the way the lp daemon should be doing a switch-user to the users id. Does anyone know how to make this happen? Or, provide any information on where I might look next. Thanks.
2 REPLIES 2
Bill Hassell
Honored Contributor

Re: HP-UX 11.0 print to file problem

This exactly the way that lp (the SysV, not BSD) on HP-UX works. When you run the lp command, a token is dropped into the FIFO queue and your print job is copied to the request directory with the ownership assigned to lp. At that point, lp terminates. lpsched reads the FIFO queue for tasks to perform, but there is no connection between the original user and the spooler. So everything proceeds with the lp user.

You'll have to modify your printer script (probably installed by your application) to obtain the user's login from the command line and perform the required chown on the output file.


Bill Hassell, sysadmin
Chris Owens
New Member

Re: HP-UX 11.0 print to file problem

I'll try to follow up on you suggestion. Thanks for the help.