• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/LPRng/DOCS/LPRng-Reference-Multipart/
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>More Examples</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="UP" title="Permissions and Authentication " href=
12    "permsref.htm">
13    <link rel="PREVIOUS" title="Complex Permission Checking" href=
14    "x8932.htm">
15    <link rel="NEXT" title="Authentication " href="authref.htm">
16  </head>
17
18  <body class="SECT1" 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          "x8932.htm" accesskey="P">Prev</a></td>
31
32          <td width="80%" align="center" valign="bottom">Chapter
33          17. Permissions and Authentication</td>
34
35          <td width="10%" align="right" valign="bottom"><a href=
36          "authref.htm" accesskey="N">Next</a></td>
37        </tr>
38      </table>
39      <hr align="LEFT" width="100%">
40    </div>
41
42    <div class="SECT1">
43      <h1 class="SECT1"><a name="AEN8947">17.6. More
44      Examples</a></h1>
45
46      <p>The following is a more complex lpd.perms file.</p>
47
48      <div class="INFORMALEXAMPLE">
49        <a name="AEN8950"></a>
50<pre class="SCREEN">
51    # All operations allowed except those specifically forbidden
52    DEFAULT ACCEPT
53    #Reject connections which do not originate from hosts with an
54    # address on 130.191.0.0 or from localhost,
55    # or name is not assigned to Engineering pc's
56    REJECT SERVICE=X NOT IFIP=130.191.0.0/16,127.0.0.1/32
57    REJECT SERVICE=X NOT REMOTEHOST=engpc*
58    #Do not allow anybody but root or papowell on
59    #astart1.private or the server to use control
60    #facilities.
61    ACCEPT SERVICE=C SERVER REMOTEUSER=root
62    ACCEPT SERVICE=C REMOTEHOST=astart1.private REMOTEUSER=papowell
63    #Allow root on talker.private to control printer hpjet
64    ACCEPT SERVICE=C HOST=talker.private PRINTER=hpjet REMOTEUSER=root
65    #Reject all others
66    REJECT SERVICE=C
67    #Do not allow forwarded jobs or requests
68    REJECT SERVICE=R,C,M FORWARD
69    # allow same user on originating host to remove a job
70    ACCEPT SERVICE=M SAMEHOST SAMEUSER
71    # allow root on server to remove a job
72    ACCEPT SERVICE=M SERVER REMOTEUSER=root
73</pre>
74      </div>
75      <br>
76      <br>
77    </div>
78
79    <div class="NAVFOOTER">
80      <hr align="LEFT" width="100%">
81
82      <table summary="Footer navigation table" width="100%" border=
83      "0" cellpadding="0" cellspacing="0">
84        <tr>
85          <td width="33%" align="left" valign="top"><a href=
86          "x8932.htm" accesskey="P">Prev</a></td>
87
88          <td width="34%" align="center" valign="top"><a href=
89          "index.htm" accesskey="H">Home</a></td>
90
91          <td width="33%" align="right" valign="top"><a href=
92          "authref.htm" accesskey="N">Next</a></td>
93        </tr>
94
95        <tr>
96          <td width="33%" align="left" valign="top">Complex
97          Permission Checking</td>
98
99          <td width="34%" align="center" valign="top"><a href=
100          "permsref.htm" accesskey="U">Up</a></td>
101
102          <td width="33%" align="right" valign="top">
103          Authentication</td>
104        </tr>
105      </table>
106    </div>
107  </body>
108</html>
109
110