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>Remove Files After Spooling</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="lpr - Job Spooler Program" href=
12    "lpr.htm">
13    <link rel="PREVIOUS" title=
14    "Job Completion Notification Requested " href=
15    "jobcompletion.htm">
16    <link rel="NEXT" title="The -Z Passthrough to Filter Options "
17    href="append-z.htm">
18  </head>
19
20  <body class="SECT1" bgcolor="#FFFFFF" text="#000000" link=
21  "#0000FF" vlink="#840084" alink="#0000FF">
22    <div class="NAVHEADER">
23      <table summary="Header navigation table" width="100%" border=
24      "0" cellpadding="0" cellspacing="0">
25        <tr>
26          <th colspan="3" align="center">LPRng Reference Manual: 5
27          Sep 2003 (For LPRng-3.8.22)</th>
28        </tr>
29
30        <tr>
31          <td width="10%" align="left" valign="bottom"><a href=
32          "jobcompletion.htm" accesskey="P">Prev</a></td>
33
34          <td width="80%" align="center" valign="bottom">Chapter 6.
35          <b class="APPLICATION">lpr</b> - Job Spooler Program</td>
36
37          <td width="10%" align="right" valign="bottom"><a href=
38          "append-z.htm" accesskey="N">Next</a></td>
39        </tr>
40      </table>
41      <hr align="LEFT" width="100%">
42    </div>
43
44    <div class="SECT1">
45      <h1 class="SECT1"><a name="AEN4373">6.6. Remove Files After
46      Spooling</a></h1>
47
48      <p>The <tt class="COMMAND">lpr -r</tt> option is extremely
49      dangerous and has proven to be fatal to a large number of
50      system administrators, so it should be used with caution.
51      Unfortunately, it is used in a large number of shell scripts
52      and by default in a vast number of programs so it is present
53      in the <b class="APPLICATION">LPRng</b> software.</p>
54
55      <p>Its action is quite simple. After sending the print job to
56      the spooler, it will try to unlink the original files. It
57      will do the unlinking operation as the original user, but if
58      the original user had permissions to remove, say, <tt class=
59      "FILENAME">/etc/password</tt>, then the file will be
60      removed.</p>
61    </div>
62
63    <div class="NAVFOOTER">
64      <hr align="LEFT" width="100%">
65
66      <table summary="Footer navigation table" width="100%" border=
67      "0" cellpadding="0" cellspacing="0">
68        <tr>
69          <td width="33%" align="left" valign="top"><a href=
70          "jobcompletion.htm" accesskey="P">Prev</a></td>
71
72          <td width="34%" align="center" valign="top"><a href=
73          "index.htm" accesskey="H">Home</a></td>
74
75          <td width="33%" align="right" valign="top"><a href=
76          "append-z.htm" accesskey="N">Next</a></td>
77        </tr>
78
79        <tr>
80          <td width="33%" align="left" valign="top">Job Completion
81          Notification Requested</td>
82
83          <td width="34%" align="center" valign="top"><a href=
84          "lpr.htm" accesskey="U">Up</a></td>
85
86          <td width="33%" align="right" valign="top">The -Z
87          Passthrough to Filter Options</td>
88        </tr>
89      </table>
90    </div>
91  </body>
92</html>
93
94