Bug 58292 - cf* & df* for remote jobs are not group lp
Summary: cf* & df* for remote jobs are not group lp
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: lpr
Version: 6.2
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Brock Organ
Depends On:
TreeView+ depends on / blocked
Reported: 2002-01-13 05:58 UTC by Wayne Wylupski
Modified: 2007-04-18 16:38 UTC (History)
0 users

Clone Of:
Last Closed: 2005-07-27 17:27:21 UTC

Attachments (Terms of Use)

Description Wayne Wylupski 2002-01-13 05:58:42 UTC
Description of Problem:

While trying to set up efax for remote faxing, I found that remote print jobs 
end up creating cf* and df* files that have permissions 660 but not owned 
bygroup "lp."  Locally printed jobs DO create the files group-owned by "lp".  
Since efax works as a filter, and filters run with a gid of "lp", then efax 
will fail for remote jobs where local jobs will work.

It's very odd that the group ownership of cf* and df* files differ based on 
where the jobs originate.  It seems that readfile(), if not the whole daemon, 
should run with a gid of lp so that the files are created consistently.

I am running with version lpr-0.50.5-1, the latest from Redhat 6.2's errata.

Version-Release number of selected component (if applicable):
lpr-0.50.5-1, the latest listed in the errata.

How Reproducible:
Very reproducible

Steps to Reproduce:
1. Create a print queue -- make the lp /dev/null (no need to waste paper), and 
create a spool directory just for this queue.  Create a log file, too.
2. Create a print filter that lists the files in the above spool directory, and 
set the input filter of this new queue to be this filter.
3. On another box, create a remote print queue that points to this queue.
4. Try to print locally, then try to print remotely.  
5. Take a look at the log file, and you should see two listings; the local 
attempt to print will show cf* and df* files having the group ownership 
of "lp", where the remote attempt to print will have the log-in groups of the 

Actual Results:
explained above.

Expected Results:
explained above.

Additional Information:
The version of efax I am running is from Redhat: efax-0.9-4.  If you follow the 
steps to reproduce, there is no need to install efax.

Comment 1 Wayne Wylupski 2002-01-13 15:43:26 UTC
Additional notes: doforkuser, which is called to run the filter, explicitly 
sets the effective group to "lp."  The permissions for lpd, as installed, are 
744, root:root.

Comment 2 Tim Waugh 2002-01-14 11:35:22 UTC
Thanks for reporting this.  I can reproduce it.

Comment 3 Tim Waugh 2005-07-27 17:27:21 UTC
This never got high enough priority to fix.

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