Mailing List Archive

Support open source code!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Printing w/ LPR

>>>>> "Mark" == LNJPTYO1 MDARCY01 <> writes:

    >> and A's hosts.lpd contains

    Mark> You nailed it on the head. Thanks very much.

Hm.  Good guess, I guess!  Do you in fact have lpd running on both
machines, or does lpr contact the remote lpd directly?

    Mark> Do you happen to know if the entries in the hosts.lpd file
    Mark> must be DNS verifiable names or can they be non-verifiable
    Mark> names residing in the local /etc/hosts file ?

Not having the source online, I don't know.  I would guess from the
slipshod treatment of the authorization issues in my man pages that my
versions of the various lp* utilities simply check the return IP
address in the IP packets against hosts.lpd, and if there is no such
address in hosts.lpd, do a `gethostbyaddr()' on the return IP address.
On my system, this looks in /etc/hosts, then does a simple reverse
name lookup to the nameserver.  This returns a single name which then
is searched for in hosts.{lpd,equiv}.

The search order for `gethostbyaddr()' can be configured (I think,
it's not documented anywhere I can see) via the hosts.conf file:

turnbull:/tmp$ cat /etc/host.conf 
order hosts, bind
multi on

So my guess is that a request from any IP address listed in /etc/hosts
is ok.  After all, if all these Unix services had been designed with
proper attention to security, we wouldn't need firewalls, would we?

Note that my lp* suite and its docs is quite old, coming from a
Slackware 2.x distribution.

                           Stephen John Turnbull
University of Tsukuba                                        Yaseppochi-Gumi
Institute of Policy and Planning Sciences
Tennodai 1-1-1, Tsukuba, 305 JAPAN       
a word from the sponsor will appear below
The TLUG mailing list is proudly sponsored by TWICS - Japan's First
Public-Access Internet System.  Now offering 20,000 yen/year flat
rate Internet access with no time charges.  Full line of corporate
Internet and intranet products are available.
Tel: 03-3351-5977   Fax: 03-3353-6096

Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links