]> git.ipfire.org Git - thirdparty/cups.git/blame - man/lpadmin.man
Load cups into easysw/current.
[thirdparty/cups.git] / man / lpadmin.man
CommitLineData
ef416fc2 1.\"
2.\" "$Id: lpadmin.man 4841 2005-11-15 20:39:31Z mike $"
3.\"
4.\" lpadmin man page for the Common UNIX Printing System (CUPS).
5.\"
6.\" Copyright 1997-2005 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" "21 October 2002" "Easy Software Products"
25.SH NAME
26lpadmin \- configure cups printers and classes
27.SH SYNOPSIS
28.B lpadmin
29[ -E ] [ -h
30.I server
31] \-d
32.I destination
33.br
34.B lpadmin
35[ -E ] [ -h
36.I server
37] \-p
38.I printer
39.I option(s)
40.br
41.B lpadmin
42[ -E ] [ -h
43.I server
44] \-x
45.I destination
46.SH DESCRIPTION
47\fIlpadmin\fR configures printer and class queues provided by
48CUPS. It can also be used to set the server default printer or
49class.
50.LP
51When specified before the \fI-d\fR, \fI-p\fR, or \fI-x\fR options,
52the \fI-E\fR option forces encryption when connecting to the server.
53.LP
54The first form of the command (\fI-d\fR) sets the default printer or class to
55\fIdestination\fR. Subsequent print jobs submitted via the \fIlp(1)\fR or
56\fIlpr(1)\fR commands will use this destination unless the user specifies
57otherwise with the \fIlpoptions(1)\fR command.
58.LP
59The second form of the command (\fI-p\fR) configures the named printer. The additional
60options are described below.
61.LP
62The third form of the command (\fI-x\fR) deletes the printer or class \fIdestination\fR.
63Any jobs that are pending for the destination will be removed and any job that
64is currently printed will be aborted.
65.SH CONFIGURATION OPTIONS
66The following options are recognized when configuring a printer queue:
67.TP 5
68\-c \fIclass\fR
69.br
70Adds the named \fIprinter\fR to \fIclass\fR. If \fIclass\fR does not
71exist it is created automatically.
72.TP 5
73\-i \fIinterface\fR
74.br
75Sets a System V style interface script for the printer. This option cannot
76be specified with the \fI\-P\fR option (PPD file) and is intended for
77providing support for legacy printer drivers.
78.TP 5
79\-m \fImodel\fR
80.br
81Sets a standard System V interface script or PPD file from the model
82directory.
83.TP 5
84\-o \fIname=value\fR
85.br
86Sets a PPD or server option for the printer. PPD options can be listed
87using the \fI-l\fR option with the \fIlpoptions(1)\fR command.
88.TP 5
89\-o \fIjob-k-limit=value\fR
90.br
91Sets the kilobyte limit for per-user quotas. The value is an integer number
92of kilobytes; one kilobyte is 1024 bytes.
93.TP 5
94\-o \fIjob-page-limit=value\fR
95.br
96Sets the page limit for per-user quotas. The value is the integer number of
97pages that can be printed; double-sided pages are counted as two pages.
98.TP 5
99\-o \fIjob-quota-period=value\fR
100.br
101Sets the accounting period for per-user quotas. The value is an integer number
102of seconds; 86,400 seconds are in one day.
103.TP 5
104\-o \fIprotocol=name\fR
105.br
106Sets the binary communications protocol to use when printing,
107None, BCP, or TBCP. The default protocol is None.
108.TP 5
109\-r \fIclass\fR
110.br
111Removes the named \fIprinter\fR from \fIclass\fR. If the resulting class
112becomes empty it is removed.
113.TP 5
114\-u \fIallow:user,user,@group\fR
115\-u \fIdeny:user,user,@group\fR
116\-u \fIallow:all\fR
117\-u \fIdeny:none\fR
118.br
119Sets user-level access control on a printer. Names starting with
120"@" are interpreted as UNIX groups. The latter two forms turn
121user-level access control off.
122.TP 5
123\-v \fIdevice-uri\fR
124.br
125Sets the \fIdevice-uri\fR attribute of the printer queue. If \fIdevice-uri\fR
126is a filename it is automatically converted to the form \fBfile:/file/name\fR.
127.TP 5
128\-D \fIinfo\fR
129.br
130Provides a textual description of the printer.
131.TP 5
132\-E
133.br
134Enables the printer and accepts jobs; this is the same as running the
135\fIaccept(8)\fR and \fIenable(8)\fR programs on the printer.
136.TP 5
137\-L \fIlocation\fR
138.br
139Provides a textual location of the printer.
140.TP 5
141\-P \fIppd-file\fR
142.br
143Specifies a PostScript Printer Description file to use with the printer. If
144specified, this option overrides the \fI-i\fR option (interface script).
145.SH COMPATIBILITY
146Unlike the System V printing system, CUPS allows printer names to contain
147any printable character except SPACE and TAB. Also, printer and class names are
148\fBnot\fR case-sensitive. Finally, the CUPS version of \fIlpadmin\fR may ask the
149user for an access password depending on the printing system configuration.
150This differs from the System V version which requires the root user to execute
151this command.
152.SH LIMITATIONS
153The CUPS version of \fIlpadmin\fR does not support all of the System V or
154Solaris printing system configuration options.
155.SH SEE ALSO
156accept(8), cancel(1), disable(8), enable(8), lp(1), lpstat(1), reject(8),
157CUPS Software Administrators Manual,
158http://localhost:631/documentation.html
159.SH COPYRIGHT
160Copyright 1993-2005 by Easy Software Products, All Rights Reserved.
161.\"
162.\" End of "$Id: lpadmin.man 4841 2005-11-15 20:39:31Z mike $".
163.\"