]> git.ipfire.org Git - thirdparty/cups.git/blob - man/lpadmin.man
cc86d63b9d9959ad5638074519af7924df84a282
[thirdparty/cups.git] / man / lpadmin.man
1 .\"
2 .\" "$Id$"
3 .\"
4 .\" lpadmin man page for the Common UNIX Printing System (CUPS).
5 .\"
6 .\" Copyright 1997-2006 by Easy Software Products.
7 .\"
8 .\" These coded instructions, statements, and computer programs are the
9 .\" property of Easy Software Products and are protected by Federal
10 .\" copyright law. Distribution and use rights are outlined in the file
11 .\" "LICENSE.txt" which should have been included with this file. If this
12 .\" file is missing or damaged please contact Easy Software Products
13 .\" at:
14 .\"
15 .\" Attn: CUPS Licensing Information
16 .\" Easy Software Products
17 .\" 44141 Airport View Drive, Suite 204
18 .\" Hollywood, Maryland 20636 USA
19 .\"
20 .\" Voice: (301) 373-9600
21 .\" EMail: cups-info@cups.org
22 .\" WWW: http://www.cups.org
23 .\"
24 .TH lpadmin 8 "Common UNIX Printing System" "23 March 2006" "Easy Software Products"
25 .SH NAME
26 lpadmin \- configure cups printers and classes
27 .SH SYNOPSIS
28 .B lpadmin
29 [ -E ] [-U
30 .I username
31 ] [ -h
32 .I server[:port]
33 ] -d
34 .I destination
35 .br
36 .B lpadmin
37 [ -E ] [-U
38 .I username
39 ] [ -h
40 .I server[:port]
41 ] -p
42 .I printer option(s)
43 .br
44 .B lpadmin
45 [ -E ] [-U
46 .I username
47 ] [ -h
48 .I server[:port]
49 ] -x
50 .I destination
51 .SH DESCRIPTION
52 \fIlpadmin\fR configures printer and class queues provided by
53 CUPS. It can also be used to set the server default printer or
54 class.
55 .LP
56 When specified before the \fI-d\fR, \fI-p\fR, or \fI-x\fR
57 options, the \fI-E\fR option forces encryption when connecting to
58 the server.
59 .LP
60 The first form of the command (\fI-d\fR) sets the default printer
61 or class to \fIdestination\fR. Subsequent print jobs submitted
62 via the \fIlp(1)\fR or \fIlpr(1)\fR commands will use this
63 destination unless the user specifies otherwise with the
64 \fIlpoptions(1)\fR command.
65 .LP
66 The second form of the command (\fI-p\fR) configures the named
67 printer. The additional options are described below.
68 .LP
69 The third form of the command (\fI-x\fR) deletes the printer or
70 class \fIdestination\fR. Any jobs that are pending for the
71 destination will be removed and any job that is currently printed
72 will be aborted.
73 .SH CONFIGURATION OPTIONS
74 The following options are recognized when configuring a printer
75 queue:
76 .TP 5
77 -c class
78 .br
79 Adds the named \fIprinter\fR to \fIclass\fR. If \fIclass\fR does
80 not exist it is created automatically.
81 .TP 5
82 -i interface
83 .br
84 Sets a System V style interface script for the printer. This
85 option cannot be specified with the \fI-P\fR option (PPD file)
86 and is intended for providing support for legacy printer drivers.
87 .TP 5
88 -m model
89 .br
90 Sets a standard System V interface script or PPD file from the
91 \fImodel\fR directory.
92 .TP 5
93 -o name=value
94 .br
95 Sets a PPD or server option for the printer. PPD options can be
96 listed using the \fI-l\fR option with the \fIlpoptions(1)\fR
97 command.
98 .TP 5
99 -o job-k-limit=value
100 .br
101 Sets the kilobyte limit for per-user quotas. The value is an
102 integer number of kilobytes; one kilobyte is 1024 bytes.
103 .TP 5
104 -o job-page-limit=value
105 .br
106 Sets the page limit for per-user quotas. The value is the integer
107 number of pages that can be printed; double-sided pages are
108 counted as two pages.
109 .TP 5
110 -o job-quota-period=value
111 .br
112 Sets the accounting period for per-user quotas. The value is an
113 integer number of seconds; 86,400 seconds are in one day.
114 .TP 5
115 -o job-sheets-default=banner
116 .TP 5
117 -o job-sheets-default=banner,banner
118 .br
119 Sets the default banner page(s) to use for print jobs.
120 .TP 5
121 -o port-monitor=name
122 .br
123 Sets the binary communications program to use when printing,
124 "none", "bcp", or "tbcp". The default program is "none".
125 .TP 5
126 -r class
127 .br
128 Removes the named \fIprinter\fR from \fIclass\fR. If the
129 resulting class becomes empty it is removed.
130 .TP 5
131 -u allow:user,user,@group
132 .TP 5
133 -u deny:user,user,@group
134 .TP 5
135 -u allow:all
136 .TP 5
137 -u deny:none
138 .br
139 Sets user-level access control on a printer. Names starting with
140 "@" are interpreted as UNIX groups. The latter two forms turn
141 user-level access control off.
142 .TP 5
143 -v "device-uri"
144 .br
145 Sets the \fIdevice-uri\fR attribute of the printer queue. If
146 \fIdevice-uri\fR is a filename it is automatically converted to
147 the form \fIfile:///file/name\fR.
148 .TP 5
149 -D "info"
150 .br
151 Provides a textual description of the printer.
152 .TP 5
153 -E
154 .br
155 Enables the printer and accepts jobs; this is the same as running the
156 \fIaccept(8)\fR and \fIcupsenable(8)\fR programs on the printer.
157 .TP 5
158 -L "location"
159 .br
160 Provides a textual location of the printer.
161 .TP 5
162 -P ppd-file
163 .br
164 Specifies a PostScript Printer Description file to use with the
165 printer. If specified, this option overrides the \fI-i\fR option
166 (interface script).
167 .SH COMPATIBILITY
168 Unlike the System V printing system, CUPS allows printer names to
169 contain any printable character except SPACE, TAB, "/", or "#".
170 Also, printer and class names are \fInot\fR case-sensitive.
171 Finally, the CUPS version of \fIlpadmin\fR may ask the user for
172 an access password depending on the printing system
173 configuration. This differs from the System V version which
174 requires the root user to execute this command.
175 .SH LIMITATIONS
176 The CUPS version of \fIlpadmin\fR does not support all of the
177 System V or Solaris printing system configuration options.
178 .SH SEE ALSO
179 \fIaccept(8)\fR, \fIcupsenable(8)\fR, \fIlpoptions(1)\fR,
180 .br
181 http://localhost:631/help
182 .SH COPYRIGHT
183 Copyright 1997-2006 by Easy Software Products, All Rights Reserved.
184 .\"
185 .\" End of "$Id$".
186 .\"