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>Permission File Location</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="Rule Matching Procedures" href= 14 "x8680.htm"> 15 <link rel="NEXT" title="Example Permission File" href= 16 "x8919.htm"> 17 </head> 18 19 <body class="SECT1" bgcolor="#FFFFFF" text="#000000" link= 20 "#0000FF" vlink="#840084" alink="#0000FF"> 21 <div class="NAVHEADER"> 22 <table summary="Header navigation table" width="100%" border= 23 "0" cellpadding="0" cellspacing="0"> 24 <tr> 25 <th colspan="3" align="center">LPRng Reference Manual: 5 26 Sep 2003 (For LPRng-3.8.22)</th> 27 </tr> 28 29 <tr> 30 <td width="10%" align="left" valign="bottom"><a href= 31 "x8680.htm" accesskey="P">Prev</a></td> 32 33 <td width="80%" align="center" valign="bottom">Chapter 34 17. Permissions and Authentication</td> 35 36 <td width="10%" align="right" valign="bottom"><a href= 37 "x8919.htm" accesskey="N">Next</a></td> 38 </tr> 39 </table> 40 <hr align="LEFT" width="100%"> 41 </div> 42 43 <div class="SECT1"> 44 <h1 class="SECT1"><a name="PERMSPATH">17.3. Permission File 45 Location</a></h1> 46 47 <p>Options used:</p> 48 49 <ul> 50 <li> 51 <p><var class="LITERAL">perms_path=</var><span class= 52 "emphasis"><i class="EMPHASIS">path</i></span></p> 53 </li> 54 </ul> 55 <br> 56 <br> 57 58 <p>The <var class="LITERAL">perms_path=</var> configuration 59 variable specifies the location of the default permissions 60 file. The default value is:</p> 61 62 <div class="INFORMALEXAMPLE"> 63 <a name="AEN8900"></a> 64<pre class="SCREEN"> 65 perms_path=${sysconfdir}/lpd.perms 66</pre> 67 </div> 68 <br> 69 <br> 70 71 <p>The <tt class="FILENAME">lpd.perms</tt> file can be 72 obtained by running a program, in a similar manner to the <tt 73 class="FILENAME">printcap</tt> file. See <a href= 74 "filters.htm">Filters</a> for details on how the program 75 would be invoked. For example, assume the configuration 76 information specified:</p> 77 78 <div class="INFORMALEXAMPLE"> 79 <a name="AEN8906"></a> 80<pre class="SCREEN"> 81 perms_path=|/usr/local/libexec/get_perms 82</pre> 83 </div> 84 <br> 85 <br> 86 87 <p>The <b class="APPLICATION">lpd</b> server will write 88 either a blank line for connection (<var class= 89 "LITERAL">SERVICE=X</var>) and global <b class= 90 "APPLICATION">lpc</b> permissions (<var class= 91 "LITERAL">SERVICE=C</var> and <var class= 92 "LITERAL">LPC=reread,lpd,default</var>) or the name of the 93 spool queue to the <var class="LITERAL">get_perms</var> 94 <acronym class="ACRONYM">STDIN</acronym>, and expects to read 95 permission information from its <acronym class= 96 "ACRONYM">STDOUT</acronym>. If the filter method is used, it 97 should always return the complete set of connection (<var 98 class="LITERAL">X</var>) and control (<var class= 99 "LITERAL">C</var> service values.</p> 100 </div> 101 102 <div class="NAVFOOTER"> 103 <hr align="LEFT" width="100%"> 104 105 <table summary="Footer navigation table" width="100%" border= 106 "0" cellpadding="0" cellspacing="0"> 107 <tr> 108 <td width="33%" align="left" valign="top"><a href= 109 "x8680.htm" accesskey="P">Prev</a></td> 110 111 <td width="34%" align="center" valign="top"><a href= 112 "index.htm" accesskey="H">Home</a></td> 113 114 <td width="33%" align="right" valign="top"><a href= 115 "x8919.htm" accesskey="N">Next</a></td> 116 </tr> 117 118 <tr> 119 <td width="33%" align="left" valign="top">Rule Matching 120 Procedures</td> 121 122 <td width="34%" align="center" valign="top"><a href= 123 "permsref.htm" accesskey="U">Up</a></td> 124 125 <td width="33%" align="right" valign="top">Example 126 Permission File</td> 127 </tr> 128 </table> 129 </div> 130 </body> 131</html> 132 133