Red Hat Bugzilla – Bug 7226
lpr 0.46 printing fails "was not linked to the original file"
Last modified: 2008-05-01 11:37:53 EDT
Printing with lpr 0.46 fails with: (example)
Subject: tolkien printer job "<unknown>"
Date: Mon, 22 Nov 1999 00:35:52 -0500
From: bin <email@example.com>
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
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.
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?
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
Should be fixed in 0.50