On Thu, 19 Sep 2002 21:44:15 +0200 (CEST)
Martin MOKREJ� <[EMAIL PROTECTED]> wrote:

>   I have a problem after upgrading to LPRng-3.8.15. It seems, user
> *has to* specify target host on a commandline line to get a job printed:
> 
> $ ./src/.libs/lpr -Plp@pf-i400 /etc/passwd
> $ ./src/.libs/lpr -Plp@localhost /etc/passwd
> $ ./src/.libs/lpr -Plp@ /etc/passwd
> Status Information:
>  sending job 'mmokrejs@pf-i400+658' to lp@<NULL>
>  connecting to '<NULL>', attempt 1
>  cannot open connection to <NULL> - bad or missing hostname?
> $ ./src/.libs/lpr -Plp /etc/passwd
> Status Information:
>  sending job 'mmokrejs@pf-i400+659' to lp-pf-i400@localhost
>  connecting to 'localhost', attempt 1
>  connected to 'localhost'
>  requesting printer lp-pf-i400@localhost
>  job 'mmokrejs@pf-i400+659' transfer to lp-pf-i400@localhost failed
>   error 'ERROR TRANSFERRING DATA'
>   sending str '^Blp-pf-i400' to lp-pf-i400@localhost

This sounds like a problem with lpd.perms.  

I suspect this is what you're experiencing:

        - lpr -Plp@localhost forces the connection over TCP/IP connection
          on localhost address; originating IP is "localhost" and follows 
          localhost rules
        - lpr -Plp uses a unix-domain socket; I'm not sure what originating
          IP address is; this may require special permissions in lpd.perms

I can't remember where Patrick injected the unix-domain socket code...it was one of 
the later LPRng releases (later than 3.8.10 or so).  

I haven't run into this particular error myself, so I can't offer much more insight 
than that...

============================================================================
   John Perkins                   |   University of Wisconsin-Madison
   Associate Researcher           |   Department of Computer Science
   [EMAIL PROTECTED]               |   1210 W. Dayton St.
   608-262-0438/608-262-9997 FAX  |   Madison, WI  53706-1685
============================================================================




-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:                           | example:
subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------

Reply via email to