Bug 1508 - LPD rejects valid jobs from remote systems
LPD rejects valid jobs from remote systems
Product: Red Hat Linux
Classification: Retired
Component: lpr (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: David Lawrence
Depends On:
  Show dependency treegraph
Reported: 1999-03-14 07:29 EST by unclebob
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: 1999-03-14 15:46:41 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 unclebob 1999-03-14 07:29:08 EST
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.

>                       /* RB 12-Mar-1999. If the user
doesn't exist on
>                          this system, force the logname to
>                          so that the filters will run */
>                       if (getpwnam(logname) == NULL)
>                         strcpy ( logname, "daemon" ) ;
Comment 1 Bill Nottingham 1999-03-14 15:46:59 EST
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.