Bug 7226 - lpr 0.46 printing fails "was not linked to the original file"
lpr 0.46 printing fails "was not linked to the original file"
Product: Red Hat Linux
Classification: Retired
Component: lpr (Show other bugs)
i386 Linux
medium Severity high
: ---
: ---
Assigned To: Bernhard Rosenkraenzer
Depends On:
  Show dependency treegraph
Reported: 1999-11-22 09:21 EST by allbery
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-01-19 09:14:10 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description allbery 1999-11-22 09:21:24 EST
Printing with lpr 0.46 fails with: (example)

    Subject: tolkien printer job "<unknown>"
    Date: Mon, 22 Nov 1999 00:35:52 -0500
    From: bin <bin@sauterne.ece.cmu.edu>
    Reply-To: root@sauterne.ece.cmu.edu

    Your printer job
    was not printed because it was not linked to the original file

This does not happen on all systems (yet), but once it starts happening it
happens for all print jobs to all printers and can only be worked around by
allowing world read and search access to /var/spool/lpd/* (which raises
security issues).

strace'ing lpd reveals that the daemon spawned to process queue jobs is

	setregid(-1, <random group ID>);
	setreuid(-1, <owner of print job>);

The group ID is random in the sense that a different group ID is "chosen"
every time lpd is restarted; if it happens to use the correct group ID
2(daemon) then printing will work until lpd is again restarted.
Comment 1 Bernhard Rosenkraenzer 1999-11-22 12:01:59 EST
Can't reproduce it here - but I'll have a look at the source.
In the meantime, can you try the 0.47 version from rawhide?
Comment 2 allbery 1999-12-15 10:08:59 EST
The problem appears to be that the required permissions on /var/spool/lpd/*
changed from what we have been using on Linux and other platforms.  The
randomness of the group IDs acquired by lpd is still perplexing but we can live
with it.
Comment 3 Bernhard Rosenkraenzer 2000-01-19 09:14:59 EST
Should be fixed in 0.50

Note You need to log in before you can comment on or make changes to this bug.