Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 11477 - Non-root printing problem
Summary: Non-root printing problem
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Bugzilla (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: John Davis (zhen) (RETIRED)
Depends on:
Reported: 2002-12-02 04:31 UTC by Michael Maeder
Modified: 2011-10-30 23:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
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??

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
Comment 3 Michael Maeder 2002-12-06 02:46:07 UTC

forgot to close the bug