pdisable Command
Purpose
Disables login ports.
Syntax
pdisable [ -a ] [ Device ]
Description
The pdisable command disables a specific port, even if a user is logged in at that port. The system disables a port by updating an entry in the /etc/inittab file and then sending a signal to the init process. When the init process 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 include:
- A full device name, such as the /dev/tty1 device
- A simple device name, such as the tty1 device
- A number (for example, 1 to indicate the /dev/tty1 device).
If you do not specify a Device parameter, the pdisable command reports the names of currently disabled ports in its set.
Note: You must have root user authority to run this command.
Flag
Item | Description |
---|---|
-a | Disables all ports that are currently enabled. |
Security
Attention RBAC users and Trusted AIX® users: This command can perform privileged operations. Only privileged users can run privileged operations. For more information about authorizations and privileges, see Privileged Command Database in Security. For a list of privileges and the authorizations associated with this command, see the lssecattr command or the getcmdattr subcommand.
Examples
- To display the names
of all ports currently disabled, enter:
pdisable
- To disable all ports
that are enabled, even if users are logged in, enter:
pdisable -a
- To disable the workstation
attached to the /dev/tty8 port, enter:
pdisable tty8
Files
Item | Description |
---|---|
/etc/locks | Contains lock files for the pshare and delay commands. |
/usr/sbin/pdisable | Contains the pdisable command. |