Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1508 - LPD rejects valid jobs from remote systems
Summary: LPD rejects valid jobs from remote systems
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: lpr
Version: 5.2
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: David Lawrence
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 1999-03-14 12:29 UTC by unclebob
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 1999-03-14 20:46:41 UTC


Attachments (Terms of Use)

Description unclebob 1999-03-14 12:29:08 UTC
Having set up a print server for a mixed network of Suns and
PCs I found that jobs from the Suns were being rejected
unless entered as root.

This should happen if the rs option is set in printcap, but
still happens even if it is not set.

The reason for this is that LPD was attempting to run the
filters with the user name of the logged on user on the Sun,
which commonly didn't exist on the Linux machine.

The solution I have found is to apply the following code
change to printjob.c, so that the filters run as "daemon" if
the user does not exist on the server. I'm not sure if this
is a security hole.

369a370,374
>                       /* RB 12-Mar-1999. If the user
doesn't exist on
>                          this system, force the logname to
"daemon"
>                          so that the filters will run */
>                       if (getpwnam(logname) == NULL)
>                         strcpy ( logname, "daemon" ) ;
455d459
<

Comment 1 Bill Nottingham 1999-03-14 20:46:59 UTC
this has been fixed in lpr-0.34-1


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