Operating System - HP-UX
1846297 Members
3611 Online
110256 Solutions
New Discussion

can't lp non-owner files even granted group read write permission

 
SOLVED
Go to solution
Herman Chim_2
New Member

can't lp non-owner files even granted group read write permission

It only works if the file is granted world read permission but it causes security issue.

$ lp -dlj5text x.x
lp: can't access file "x.x"
lp: request not accepted

$ more x.x
delete from d510hrsap_t where ev_eff_dt <> to_date('19000101','yyyymmdd')
/

$ ll x.x
-rw-rw---- 1 vip ibmftp 76 Nov 27 15:59 x.x

# ll /usr/bin/lp
-r-sr-xr-x 1 root bin 69632 Dec 2 2004 /usr/bin/lp

Any idea?

Thanks,
Herman
4 REPLIES 4
Dennis Handly
Acclaimed Contributor

Re: can't lp non-owner files even granted group read write permission

There is a -c option to lp that copies the files, would that help?

But I had no problems as long as I had read access to the file.
But I have PHCO_34822 installed.

-rw-r-----
Bruce Laughlin
Frequent Advisor
Solution

Re: can't lp non-owner files even granted group read write permission

Hi Herman,

I believe that this is the problem reported in defect number 8606465296, which is a defect reported against 11.23.

Until there is a fix available, you may be able to workaround the problem by doing:

"cat |lp -d"

Bruce Laughlin
HPUX WTEC
Herman Chim_2
New Member

Re: can't lp non-owner files even granted group read write permission

Thanks Bruce. Will use the workaround.

Dennis, it happens on HP9000. I just tried on Integrity Server and it works. Maybe why you have no problem. Thanks for your suggestion.

Herman
Herman Chim_2
New Member

Re: can't lp non-owner files even granted group read write permission

Will contact HP for patch if available