Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ disable(C) — OpenDesktop 2.0.0a

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

login(M)

enable(C)

inittab(F)

getty(M)

init(M)

lp(C)

lpstat(C)


 disable(C)                      19 June 1992                      disable(C)


 Name

    disable - turn off terminals and printers

 Syntax

    disable tty...
    disable [ -c ] [ -r [ reason ] ] printers

 Description

    For terminals, this program manipulates the /etc/conf/cf.d/init.base file
    and signals init to disallow logins on a particular terminal.  For print-
    ers, disable stops print requests from being sent to the named printer.
    The following options can be used:

    -c          Cancels any requests that are currently printing.  This
                option cannot be used with the -W option.

    -W          Disables the specified printers when the print requests
                currently printing have finished.  This option cannot be used
                with the -c option.

    -r [ reason ]
                Associates a reason with disabling the printer. The reason
                applies to all printers listed up to the next -r option.  If
                the -r option is not present or the -r option is given
                without a reason, then a default reason is used.  reason is
                reported by lpstat(C).

 Examples

    In this example, a printer named linepr is disabled because of a paper
    jam:

       disable -r"paper jam" linepr

 Files

    /dev/tty*
    /etc/conf/cf.d/init.base
    /usr/spool/lp/*

 See also

    login(M), enable(C), inittab(F), getty(M), init(M), lp(C), lpstat(C),

 Authorization

    The behavior of this utility is affected by assignment of the printerstat
    authorization, which is usually reserved for system administrators. Refer
    to the ``Using a secure system'' chapter of the User's Guide for more
    details.


Typewritten Software • bear@typewritten.org • Edmonds, WA 98026