Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 11477

Summary: Non-root printing problem
Product: Gentoo Infrastructure Reporter: Michael Maeder <mike>
Component: BugzillaAssignee: John Davis (zhen) (RETIRED) <zhen>
Status: VERIFIED FIXED    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Michael Maeder 2002-12-02 04:31:50 UTC
I have latest cups (1.1.17_pre20021025) installed. Printing with root access 
is okay. Printing with normal user access works when invoked like: lpr 
'file-to-print'. If it is invoked through a pipe (e.g. cat 'file' | lpr), 
printing doesn't work. I get: lpr: unable to create temporary file. Error

Some ideas??

mike
Comment 1 Michael Maeder 2002-12-02 07:27:26 UTC
Hi again,

I double-checked the file permission of the lp, lpr, lpq, lprm executables. I 
think they should have the suid and guid bit set.
I changed it, and now it works. Is it a security risk??
Comment 2 Michael Maeder 2002-12-06 02:45:17 UTC
Once again Paul de Vrieze gave me a useful hint. I had some wrong permissions on
my temporary /var/tmp directory.

Changing these permissions to the correct values, reactivated printing through
pipe for normal users.

Thanks Paul

 see ya
    mike
Comment 3 Michael Maeder 2002-12-06 02:46:07 UTC
sorry,

forgot to close the bug

mike