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

<html>
  <head>
    <meta name="generator" content="HTML Tidy, see www.w3.org">
    <title>Remove Files After Spooling</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="lpr - Job Spooler Program" href=
    "lpr.htm">
    <link rel="PREVIOUS" title=
    "Job Completion Notification Requested " href=
    "jobcompletion.htm">
    <link rel="NEXT" title="The -Z Passthrough to Filter Options "
    href="append-z.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=
          "jobcompletion.htm" accesskey="P">Prev</a></td>

          <td width="80%" align="center" valign="bottom">Chapter 6.
          <b class="APPLICATION">lpr</b> - Job Spooler Program</td>

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

    <div class="SECT1">
      <h1 class="SECT1"><a name="AEN4387">6.6. Remove Files After
      Spooling</a></h1>

      <p>The <tt class="COMMAND">lpr -r</tt> option is extremely
      dangerous and has proven to be fatal to a large number of
      system administrators, so it should be used with caution.
      Unfortunately, it is used in a large number of shell scripts
      and by default in a vast number of programs so it is present
      in the <b class="APPLICATION">LPRng</b> software.</p>

      <p>Its action is quite simple. After sending the print job to
      the spooler, it will try to unlink the original files. It
      will do the unlinking operation as the original user, but if
      the original user had permissions to remove, say, <tt class=
      "FILENAME">/etc/password</tt>, then the file will be
      removed.</p>
    </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=
          "jobcompletion.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=
          "append-z.htm" accesskey="N">Next</a></td>
        </tr>

        <tr>
          <td width="33%" align="left" valign="top">Job Completion
          Notification Requested</td>

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

          <td width="33%" align="right" valign="top">The -Z
          Passthrough to Filter Options</td>
        </tr>
      </table>
    </div>
  </body>
</html>



syntax highlighted by Code2HTML, v. 0.9.1