1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
3<html>
4  <head>
5    <meta name="generator" content="HTML Tidy, see www.w3.org">
6    <title>The Most Frequently Asked Questions</title>
7    <meta name="GENERATOR" content=
8    "Modular DocBook HTML Stylesheet Version 1.7">
9    <link rel="HOME" title=" LPRng Reference Manual" href=
10    "index.htm">
11    <link rel="PREVIOUS" title="Authenticated Transfer" href=
12    "x10656.htm">
13    <link rel="NEXT" title=
14    "It was working normally, then I get connection refused errors"
15    href="x10703.htm">
16  </head>
17
18  <body class="CHAPTER" bgcolor="#FFFFFF" text="#000000" link=
19  "#0000FF" vlink="#840084" alink="#0000FF">
20    <div class="NAVHEADER">
21      <table summary="Header navigation table" width="100%" border=
22      "0" cellpadding="0" cellspacing="0">
23        <tr>
24          <th colspan="3" align="center">LPRng Reference Manual: 5
25          Sep 2003 (For LPRng-3.8.22)</th>
26        </tr>
27
28        <tr>
29          <td width="10%" align="left" valign="bottom"><a href=
30          "x10656.htm" accesskey="P">Prev</a></td>
31
32          <td width="80%" align="center" valign="bottom">
33          </td>
34
35          <td width="10%" align="right" valign="bottom"><a href=
36          "x10703.htm" accesskey="N">Next</a></td>
37        </tr>
38      </table>
39      <hr align="LEFT" width="100%">
40    </div>
41
42    <div class="CHAPTER">
43      <h1><a name="FAQ"></a>Chapter 20. The Most Frequently Asked
44      Questions</h1>
45
46      <div class="TOC">
47        <dl>
48          <dt><b>Table of Contents</b></dt>
49
50          <dt>20.1. <a href="faq.htm#AEN10675">Why do I get
51          malformed from address errors?</a></dt>
52
53          <dt>20.2. <a href="x10703.htm">It was working normally,
54          then I get connection refused errors</a></dt>
55
56          <dt>20.3. <a href="x10735.htm">Job is not in print queue,
57          but it gets printed!</a></dt>
58
59          <dt>20.4. <a href="x10790.htm">Job disappears and is
60          never printed, but lpr works</a></dt>
61
62          <dt>20.5. <a href="x10807.htm">I get messages about bad
63          control file format</a></dt>
64
65          <dt>20.6. <a href="rfc1179.htm">What is RFC 1179, the
66          Line Printer Daemon Protocol?</a></dt>
67
68          <dt>20.7. <a href="x10839.htm">I want to replace lp,
69          lpstat, etc, but my programs need them</a></dt>
70        </dl>
71      </div>
72
73      <p>In this section, the Most Frequently Asked Questions have
74      been placed, together with their answers. You may notice that
75      some questions have the same answer, but the symptoms appear
76      differently.</p>
77
78      <p>Some of these answers will reference other material in
79      this FAQ, or the <b class="APPLICATION">LPRng</b> man
80      pages.</p>
81
82      <div class="SECT1">
83        <h1 class="SECT1"><a name="AEN10675">20.1. Why do I get
84        malformed from address errors?</a></h1>
85
86        <p>This is the number one question asked by most <b class=
87        "APPLICATION">LPRng</b> users who try to use <b class=
88        "APPLICATION">LPRng</b> with network printers or other
89        systems supporting <a href="rfc1179.htm">RFC1179</a>
90        printing. For details about <b class=
91        "APPLICATION">LPRng</b> and RFC1179, see <a href=
92        "rfc1179ref.htm">RFC1179 and <b class=
93        "APPLICATION">LPRng</b></a>.</p>
94
95        <p>The <var class="LITERAL">malformed from address</var>
96        error is usually reported when trying to send a print job
97        from <b class="APPLICATION">LPRng</b> to other BSD <b
98        class="APPLICATION">lpr</b> or RFC1179 <b class=
99        "APPLICATION">lpr</b> implementations, or with network
100        connected printers that have a built in <b class=
101        "APPLICATION">lpd</b> server. This is due to the following
102        RFC1179 rule: <a name="AEN10690"></a></p>
103
104        <blockquote class="BLOCKQUOTE">
105          <p>Servers originate a connection from ports in the range
106          721-731.</p>
107        </blockquote>
108        <br>
109        <br>
110
111        <p>WHY? These are a subset of the 'reserved' ports in UNIX,
112        and normal users cannot open connections from them. This
113        provides a small amount of security from UNIX users on the
114        host 'spoofing' a server.</p>
115
116        <p>IMPLICATION: in order to do use a reserved port, the
117        program must have root privileges. This means the LPR, <b
118        class="APPLICATION">lpd</b>, <b class=
119        "APPLICATION">lpq</b>, etc., programs must be installed
120        SUID root. This can open up a can of worms with regard to
121        security, but <b class="APPLICATION">LPRng</b> has been
122        designed to take as much paranoid care as possible to avoid
123        problems.</p>
124
125        <p>WHAT TO DO: When installing <b class=
126        "APPLICATION">LPRng</b> you will need to install the
127        executables SUID root. In the <tt class=
128        "FILENAME">src/Makefile</tt>, you can remove the comment
129        from the line</p>
130
131        <div class="INFORMALEXAMPLE">
132          <a name="AEN10700"></a>
133<pre class="SCREEN">
134    PERMS=SUID_ROOT_PERMS
135</pre>
136        </div>
137        and then do <var class="LITERAL">make install</var>. This
138        will install the executables SUID, and owned by root.<br>
139        <br>
140      </div>
141    </div>
142
143    <div class="NAVFOOTER">
144      <hr align="LEFT" width="100%">
145
146      <table summary="Footer navigation table" width="100%" border=
147      "0" cellpadding="0" cellspacing="0">
148        <tr>
149          <td width="33%" align="left" valign="top"><a href=
150          "x10656.htm" accesskey="P">Prev</a></td>
151
152          <td width="34%" align="center" valign="top"><a href=
153          "index.htm" accesskey="H">Home</a></td>
154
155          <td width="33%" align="right" valign="top"><a href=
156          "x10703.htm" accesskey="N">Next</a></td>
157        </tr>
158
159        <tr>
160          <td width="33%" align="left" valign="top">Authenticated
161          Transfer</td>
162
163          <td width="34%" align="center" valign="top">&nbsp;</td>
164
165          <td width="33%" align="right" valign="top">It was working
166          normally, then I get connection refused errors</td>
167        </tr>
168      </table>
169    </div>
170  </body>
171</html>
172
173