lspriv Command

Purpose

Displays the privileges available on the system.

Syntax

lspriv [ -v ]

Description

The lspriv command displays privileges available to the system. If run within a workload partition (WPAR), the lspriv command displays only the privileges available to the partition. If the -v flag is specified, the lspriv command also displays privilege descriptions.

Flags

Item Description
-v Specifies to display the privilege description for each privilege.

Security

Any user can run the lspriv command on the system.

Examples

  1. To display all privileges available on the system, use the following command:
    lspriv
    The system displays an output similar to the following example:
    PV_ROOT
    PV_AU_
    PV_AU_ADD
    PV_AU_ADMIN
    PV_AU_READ
    ...
  2. To display all privileges available on the system and their textual description, use the following command:
    lspriv -v
    The system displays an output similar to the following example:
    PV_ROOT Allows a process to pass any non-SU privilege check.
    PV_AU_ Equivalent to all Auditing privileges (PV_AU_*) combined.
    PV_AU_ADD Allows a process to record/add an audit record.
    PV_AU_ADMIN Allows a process to configure and query the audit system.
    PV_AU_READ Allows a process to read a file marked as an audit file.
    ...