pshare Command

Purpose

Enables or reports the availability of shared login ports.

Syntax

pshare [ -a ] [ Device ]

Description

The pshare command enables shared ports. Shared ports are bidirectional. If you do not specify a Device parameter, the pshare command reports the names of all currently enabled shared ports. To enable a shared port, the getty command attempts to create a lock file in the /etc/locks directory that contains the ASCII process ID of the process. If another process is already using the port, the getty command waits until the port is available and tries again. The system enables a port by updating an entry in the /etc/inittab file and then sending a signal to the init process. After receiving the signal and reading the updated status entry, the process takes the appropriate action.

Use the Device parameter to specify the ports to be enabled. Permitted values include:

Flags

Item Description
-a Enables all ports as shared.

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 enable the workstation attached to the /dev/tty2 port as a shared port, enter:

pshare /dev/tty2
Item Description
/etc/inittab Controls system initialization.

Files

Item Description
/etc/locks Contains lock files for the pshare and pdelay commands.
/usr/sbin/pshare Contains the pshare command.