]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - doc/help/policies.html
Merge changes from CUPS 1.4svn-r8628.
[thirdparty/cups.git] / doc / help / policies.html
index 804fc3e9ea0a7f20ccb74ad0069840fb92592009..485a8570524698d38132d7fc02eaca2dd2c8732c 100644 (file)
@@ -2,9 +2,12 @@
 <!-- SECTION: Getting Started -->
 <HEAD>
        <TITLE>Managing Operation Policies</TITLE>
+       <LINK REL="STYLESHEET" TYPE="text/css" HREF="../cups-printable.css">
 </HEAD>
 <BODY>
 
+<H1 CLASS="title">Managing Operation Policies</H1>
+
 <P>Operation policies are the rules used for each IPP operation
 in CUPS. These rules include things like "user must provide a
 password", "user must be in the system group", "allow only from
@@ -49,12 +52,12 @@ the <VAR>cupsd.conf</VAR> file from the console, make sure to <A
 HREF="ref-cupsd-conf.html">restart the cupsd process</A> before
 trying to use the new policy.</P>
 
-<PRE CLASS="command">
+<PRE CLASS="example">
 <EM>Listing 1: <A NAME="LISTING01">Default Operation Policy</A></EM>
 
  1    &lt;Policy default>
  2      # Job-related operations must be done by the owner or an
-      adminstrator...
+      administrator...
  3      &lt;Limit Send-Document Send-URI Hold-Job Release-Job
       Restart-Job Purge-Jobs Set-Job-Attributes
       Create-Job-Subscription Renew-Subscription
@@ -65,32 +68,40 @@ trying to use the new policy.</P>
  5        Order deny,allow
  6      &lt;/Limit>
  7    
- 8      # All administration operations require an adminstrator
+ 8      # All administration operations require an administrator
       to authenticate...
- 9      &lt;Limit Pause-Printer Resume-Printer
-      Set-Printer-Attributes Enable-Printer Disable-Printer
-      Pause-Printer-After-Current-Job Hold-New-Jobs
-      Release-Held-New-Jobs Deactivate-Printer Activate-Printer
-      Restart-Printer Shutdown-Printer Startup-Printer
-      Promote-Job Schedule-Job-After CUPS-Add-Printer
-      CUPS-Delete-Printer CUPS-Add-Class CUPS-Delete-Class
-      CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default>
-10        AuthType Basic
+ 9      &lt;Limit CUPS-Add-Printer CUPS-Delete-Printer CUPS-Add-Class
+      CUPS-Delete-Class CUPS-Set-Default>
+10        AuthType Default
 11        Require user @SYSTEM
 12        Order deny,allow
 13      &lt;/Limit>
 14    
-15      # Only the owner or an administrator can cancel or
+15      # All printer operations require a printer operator
+      to authenticate...
+16      &lt;Limit Pause-Printer Resume-Printer
+      Set-Printer-Attributes Enable-Printer Disable-Printer
+      Pause-Printer-After-Current-Job Hold-New-Jobs
+      Release-Held-New-Jobs Deactivate-Printer Activate-Printer
+      Restart-Printer Shutdown-Printer Startup-Printer
+      Promote-Job Schedule-Job-After CUPS-Accept-Jobs
+      CUPS-Reject-Jobs>
+17        AuthType Default
+18        Require user <em>varies by OS</em>
+19        Order deny,allow
+20      &lt;/Limit>
+21    
+22      # Only the owner or an administrator can cancel or
       authenticate a job...
-16      &lt;Limit Cancel-Job CUPS-Authenticate-Job>
-17        Require user @OWNER @SYSTEM
-18        Order deny,allow
-19      &lt;/Limit>
-20    
-21      &lt;Limit All>
-22        Order deny,allow
-23      &lt;/Limit>
-24    &lt;/Policy>
+23      &lt;Limit Cancel-Job CUPS-Authenticate-Job>
+24        Require user @OWNER @SYSTEM
+25        Order deny,allow
+26      &lt;/Limit>
+27    
+28      &lt;Limit All>
+29        Order deny,allow
+30      &lt;/Limit>
+31    &lt;/Policy>
 </PRE>
 
 <H3>The Default CUPS Operation Policy</H3>
@@ -98,14 +109,14 @@ trying to use the new policy.</P>
 <P>The policy definition starts with an opening <TT>Policy</TT>
 directive:</P>
 
-<PRE CLASS="command">
+<PRE CLASS="example">
  1    &lt;Policy default>
 </PRE>
 
 <P>The first <TT>Limit</TT> subsection defines the rules for IPP
 job operations:</P>
 
-<PRE CLASS="command">
+<PRE CLASS="example">
  3      &lt;Limit Send-Document Send-URI Hold-Job Release-Job
       Restart-Job Purge-Jobs Set-Job-Attributes
       Create-Job-Subscription Renew-Subscription
@@ -138,19 +149,27 @@ request. The administrative operations starting on line 9,
 however, <em>do</em> use the <TT>AuthType</TT> directive, and so
 administrative operations need to be authenticated:</P>
 
-<PRE CLASS="command">
- 9      &lt;Limit Pause-Printer Resume-Printer
+<PRE CLASS="example">
+ 9      &lt;Limit CUPS-Add-Printer CUPS-Delete-Printer CUPS-Add-Class
+      CUPS-Delete-Class CUPS-Set-Default>
+10        AuthType Default
+11        Require user @SYSTEM
+12        Order deny,allow
+13      &lt;/Limit>
+14    
+15      # All printer operations require a printer operator
+      to authenticate...
+16      &lt;Limit Pause-Printer Resume-Printer
       Set-Printer-Attributes Enable-Printer Disable-Printer
       Pause-Printer-After-Current-Job Hold-New-Jobs
       Release-Held-New-Jobs Deactivate-Printer Activate-Printer
       Restart-Printer Shutdown-Printer Startup-Printer
-      Promote-Job Schedule-Job-After CUPS-Add-Printer
-      CUPS-Delete-Printer CUPS-Add-Class CUPS-Delete-Class
-      CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default>
-10        AuthType Basic
-11        Require user @SYSTEM
-12        Order deny,allow
-13      &lt;/Limit>
+      Promote-Job Schedule-Job-After CUPS-Accept-Jobs
+      CUPS-Reject-Jobs>
+17        AuthType Default
+18        Require user <em>varies by OS</em>
+19        Order deny,allow
+20      &lt;/Limit>
 </PRE>
 
 <P>The "Order deny,allow" line at the end of both <TT>Limit</TT>
@@ -164,7 +183,7 @@ more easily edit their policy without disturbing the rest. Like
 the rest of the job operations, we want the job's owner
 ("@OWNER") or an administrator ("@SYSTEM") to do it:</P>
 
-<PRE CLASS="command">
+<PRE CLASS="example">
 16      &lt;Limit Cancel-Job CUPS-Authenticate-Job>
 17        Require user @OWNER @SYSTEM
 18        Order deny,allow
@@ -177,7 +196,7 @@ this subsection for any operation you don't list specifically in
 the policy. In this case, all other operations are allowed
 without a username or authentication:</P>
 
-<PRE CLASS="command">
+<PRE CLASS="example">
 21      &lt;Limit All>
 22        Order deny,allow
 23      &lt;/Limit>
@@ -505,7 +524,7 @@ change you'll make is to give the policy a new name. Policy names
 can use the same characters as a printer name, specifically all
 printable characters except space, slash (/), and pound (#):</P>
 
-<PRE CLASS="command">
+<PRE CLASS="example">
 &lt;Policy mypolicy>
 </PRE>
 
@@ -514,7 +533,7 @@ policy. For example, if you want to allow any user to cancel any
 other users' jobs, you can change the <TT>Cancel-Job</TT> limits
 to:</P>
 
-<PRE CLASS="command">
+<PRE CLASS="example">
 &lt;Limit Cancel-Job>
   Order deny,allow
 &lt;/Limit>
@@ -597,12 +616,12 @@ the lab technicians, who are members of a special UNIX group for
 that lab called "lab999", to do job, printer, and subscription
 management operations.</P>
 
-<PRE CLASS="command">
+<PRE CLASS="example">
 <EM>Listing 2: <A NAME="LISTING02">Operation Policy for a Lab</A></EM>
 
  1    &lt;Policy lab999>
  2      # Job- and subscription-related operations must be done
-      by the owner, a lab technician, or an adminstrator...
+      by the owner, a lab technician, or an administrator...
  3      &lt;Limit Send-Document Send-URI Hold-Job Release-Job
       Restart-Job Purge-Jobs Set-Job-Attributes
       Create-Job-Subscription Renew-Subscription
@@ -615,7 +634,7 @@ management operations.</P>
  7      &lt;/Limit>
  8    
  9      # All administration operations require a lab technician
-      or an adminstrator to authenticate...
+      or an administrator to authenticate...
 10      &lt;Limit Pause-Printer Resume-Printer
       Set-Printer-Attributes Enable-Printer Disable-Printer
       Pause-Printer-After-Current-Job Hold-New-Jobs
@@ -623,7 +642,7 @@ management operations.</P>
       Restart-Printer Shutdown-Printer Startup-Printer
       Promote-Job Schedule-Job-After CUPS-Accept-Jobs
       CUPS-Reject-Jobs CUPS-Set-Default>
-11        AuthType Basic
+11        AuthType Default
 12        Require user @lab999 @SYSTEM
 13        Order allow,deny
 14        Allow from 10.0.2.0/24
@@ -648,7 +667,7 @@ directive in the <VAR>cupsd.conf</VAR> file. For example, add the
 following line to the <VAR>cupsd.conf</VAR> file to use the
 "lab999" policy from the previous section:</P>
 
-<PRE CLASS="command">
+<PRE CLASS="example">
 DefaultPolicy lab999
 </PRE>
 
@@ -670,7 +689,7 @@ printer's web page, for example
 "http://localhost:631/printers/LaserJet4000", and click on the
 <VAR>Set Printer Options</VAR> button. Scroll down to the bottom
 of the page and choose the desired policy from the pull-down
-list. Click on <VAR>Save Changes</VAR> to change the policy for
+list. Click on <VAR>Set Printer Options</VAR> to change the policy for
 the printer.</P>
 
 </BODY>