<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
  <head>
    <meta name="generator" content="HTML Tidy, see www.w3.org">
    <title>More Examples</title>
    <meta name="GENERATOR" content=
    "Modular DocBook HTML Stylesheet Version 1.7">
    <link rel="HOME" title=" LPRng Reference Manual" href=
    "index.htm">
    <link rel="UP" title="Permissions and Authentication " href=
    "permsref.htm">
    <link rel="PREVIOUS" title="Complex Permission Checking" href=
    "x8969.htm">
    <link rel="NEXT" title="Authentication and Encryption " href=
    "authref.htm">
  </head>

  <body class="SECT1" bgcolor="#FFFFFF" text="#000000" link=
  "#0000FF" vlink="#840084" alink="#0000FF">
    <div class="NAVHEADER">
      <table summary="Header navigation table" width="100%" border=
      "0" cellpadding="0" cellspacing="0">
        <tr>
          <th colspan="3" align="center">LPRng Reference Manual: 24
          Sep 2004 (For LPRng-3.8.28)</th>
        </tr>

        <tr>
          <td width="10%" align="left" valign="bottom"><a href=
          "x8969.htm" accesskey="P">Prev</a></td>

          <td width="80%" align="center" valign="bottom">Chapter
          17. Permissions and Authentication</td>

          <td width="10%" align="right" valign="bottom"><a href=
          "authref.htm" accesskey="N">Next</a></td>
        </tr>
      </table>
      <hr align="LEFT" width="100%">
    </div>

    <div class="SECT1">
      <h1 class="SECT1"><a name="AEN8984">17.6. More
      Examples</a></h1>

      <p>The following is a more complex lpd.perms file.</p>

      <div class="INFORMALEXAMPLE">
        <a name="AEN8987"></a>
<pre class="SCREEN">
    # All operations allowed except those specifically forbidden
    DEFAULT ACCEPT
    #Reject connections which do not originate from hosts with an
    # address on 130.191.0.0 or from localhost,
    # or name is not assigned to Engineering pc's
    REJECT SERVICE=X NOT IFIP=130.191.0.0/16,127.0.0.1/32
    REJECT SERVICE=X NOT REMOTEHOST=engpc*
    #Do not allow anybody but root or papowell on
    #astart1.private or the server to use control
    #facilities.
    ACCEPT SERVICE=C SERVER REMOTEUSER=root
    ACCEPT SERVICE=C REMOTEHOST=astart1.private REMOTEUSER=papowell
    #Allow root on talker.private to control printer hpjet
    ACCEPT SERVICE=C HOST=talker.private PRINTER=hpjet REMOTEUSER=root
    #Reject all others
    REJECT SERVICE=C
    #Do not allow forwarded jobs or requests
    REJECT SERVICE=R,C,M FORWARD
    # allow same user on originating host to remove a job
    ACCEPT SERVICE=M SAMEHOST SAMEUSER
    # allow root on server to remove a job
    ACCEPT SERVICE=M SERVER REMOTEUSER=root
</pre>
      </div>
      <br>
      <br>
    </div>

    <div class="NAVFOOTER">
      <hr align="LEFT" width="100%">

      <table summary="Footer navigation table" width="100%" border=
      "0" cellpadding="0" cellspacing="0">
        <tr>
          <td width="33%" align="left" valign="top"><a href=
          "x8969.htm" accesskey="P">Prev</a></td>

          <td width="34%" align="center" valign="top"><a href=
          "index.htm" accesskey="H">Home</a></td>

          <td width="33%" align="right" valign="top"><a href=
          "authref.htm" accesskey="N">Next</a></td>
        </tr>

        <tr>
          <td width="33%" align="left" valign="top">Complex
          Permission Checking</td>

          <td width="34%" align="center" valign="top"><a href=
          "permsref.htm" accesskey="U">Up</a></td>

          <td width="33%" align="right" valign="top">Authentication
          and Encryption</td>
        </tr>
      </table>
    </div>
  </body>
</html>



syntax highlighted by Code2HTML, v. 0.9.1