enable, disable - enable/disable LP printers
/usr/bin/disable [-c | -W] [-r [reason]] printer...
The enable command activates printers, enabling them to print requests
submitted by the lp command. enable must be run on the printer
The disable command deactivates printers, disabling them
from printing requests submitted by the lp command. By default, any
requests that are currently printing on printer are reprinted in
their entirety either on printer or another member of the same class
of printers. The disable command must be run on the print server.
Use lpstat -p to check the status of printers.
Generally, enable and disable are run on the print
server to control local print queues. Under some configurations, they can
also be run on client systems when IPP is being used to communicate between
client and server.
The following options are supported for use with disable:
Cancels any requests that are currently printing on
printer. This option cannot be used with the -W option. If the
printer is remote, the -c option is silently ignored.
Waits until the request currently being printed is
finished before disabling printer. This option cannot be used with the
-c option. If the printer is remote, the -W option is silently
Assigns a reason for the disabling of the
printer(s). This reason applies to all printers specified. This
reason is reported by lpstat -p. Enclose reason in
quotes if it contains blanks. The default reason is unknown reason for
the existing printer, and "new printer" for a printer added
to the system but not yet enabled.
The following operand is supported for both enable and disable:
The following exit values are returned:
The name of the printer to be enabled or disabled.
using atomic or URI-style
) names. See printers.conf(5)
regarding the naming conventions for destinations.
An error occurred.
System printer configuration database
User-configurable printer database
LDAP version of /etc/printers.conf
NIS version of /etc/printers.conf
See attributes(7) for descriptions of the following attributes:
When IPP is in use, the user is prompted for a passphrase if the remote print
service is configured to require authentication.