Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ pdisable(8) — AIX PS/2 1.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

init, telinit

pstart, penable, pshare, pdelay

ports

inittab



PDISABLE, PHOLD(8,C)        AIX Commands Reference         PDISABLE, PHOLD(8,C)



-------------------------------------------------------------------------------
pdisable, phold



PURPOSE

Disables or reports the availability of login ports.

SYNTAX


   one of
+----------+  +----- -a -----+
| pdisable |--|      -i      |---|
| phold    |  +--- device ---+
+----------+    ^           |
                +-----------+


Warning: See restrictions, Chapter 18, AIX Programming Tools and Interfaces.

DESCRIPTION

The pdisable and phold commands each disable a set of login ports.  Disabling a
port makes the port unavailable to log in.  The system disables a port by
updating an entry in the /etc/inittab file and then sending a signal to init.
When init receives the signal and reads the updated status entry, it takes the
appropriate action.

Use the device parameter to specify the ports to be disabled.  Permitted values
for device include:

  o A full device name, such as /dev/tty1.
  o A simple device name, such as tty1.
  o A general class of devices in the form attribute=value, which is equivalent
    to naming each port with a stanza in /etc/ports that includes the specified
    attribute.

If you do not specify a device to disable, each command reports the names of
currently disabled ports in its set.  You must have superuser privileges to
execute these commands.

pdisable

The pdisable command disables the specified port, even if a user is logged on,
and makes the port unavailable for log in.  To disable the port, the system
ends logger.  If you do not specify any arguments, pdisable reports the names
of all disabled ports.

phold




Processed November 8, 1990   PDISABLE, PHOLD(8,C)                             1





PDISABLE, PHOLD(8,C)        AIX Commands Reference         PDISABLE, PHOLD(8,C)



The phold command allows logged-on users to continue, but does not allow any
more users to log on.  If you do not specify any arguments, phold reports the
names of all ports on hold.

FLAGS

-a With pdisable, disables all ports that are currently enabled in the
   /etc/inittab file.  With phold, holds all ports that are currently enabled
   in the /etc/inittab file.

-i Reinitializes /etc/inittab to system default values prior to disabling or
   holding any login ports.  You typically use this flag in the /etc/rc command
   file to re-establish default port enabling before starting up the system
   with multiple users.

EXAMPLES

  1. To display the names of all ports currently disabled:

      pdisable

  2. To disable all ports that are enabled in /etc/inittab, even if users are
    logged on:

      pdisable  -a

  3. To disable the work station attached to the /dev/tty8 port:

      pdisable  tty8

  4. To list the ports that are currently on hold:

      phold

  5. To put all "9600" baud ports on hold:

      phold  speed=9600

FILES

/etc/ports
        Contains descriptions of known normal, shared, and delayed login ports.
/etc/inittab
        Contains current status of each known login port.

RELATED INFORMATION

See the following commands:  "init, telinit" and "pstart, penable, pshare,
pdelay."

See the ports and inittab files in AIX Operating System Technical Reference.




Processed November 8, 1990   PDISABLE, PHOLD(8,C)                             2



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