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 <Policy default>
<P>The policy definition starts with an opening <TT>Policy</TT>
directive:</P>
-<PRE CLASS="command">
+<PRE CLASS="example">
1 <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 <Limit Send-Document Send-URI Hold-Job Release-Job
Restart-Job Purge-Jobs Set-Job-Attributes
Create-Job-Subscription Renew-Subscription
however, <em>do</em> use the <TT>AuthType</TT> directive, and so
administrative operations need to be authenticated:</P>
-<PRE CLASS="command">
+<PRE CLASS="example">
9 <Limit CUPS-Add-Printer CUPS-Delete-Printer CUPS-Add-Class
CUPS-Delete-Class CUPS-Set-Default>
10 AuthType Default
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 <Limit Cancel-Job CUPS-Authenticate-Job>
17 Require user @OWNER @SYSTEM
18 Order deny,allow
the policy. In this case, all other operations are allowed
without a username or authentication:</P>
-<PRE CLASS="command">
+<PRE CLASS="example">
21 <Limit All>
22 Order deny,allow
23 </Limit>
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">
<Policy mypolicy>
</PRE>
other users' jobs, you can change the <TT>Cancel-Job</TT> limits
to:</P>
-<PRE CLASS="command">
+<PRE CLASS="example">
<Limit Cancel-Job>
Order deny,allow
</Limit>
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 <Policy lab999>
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>