lpusers Command

Note: This is a System V Print Subsystem command.

Purpose

Set printing queue priorities.

Syntax

lpusers -d PriorityLevel

lpusers -q PriorityLimit -u LoginIDList

lpusers -u LoginIDList

lpusers -q PriorityLimit

lpusers -l

Description

The lpusers command sets limits to the queue priority level that can be assigned to jobs submitted by users of the LP print service.

The first form of the command (with -d) sets the system-wide priority default to PriorityLevel, where PriorityLevel is a value of 0 to 39, with 0 being the highest priority. If a user does not specify a priority level with a print request (see the lp command), the default priority is used. Initially, the default priority level is 20.

The second form of the command (with -q and -u) sets the default PriorityLimit ( from 0 to 39) that the users in the LoginIDList can request when submitting a print request. The LoginIDList parameter may include any or all of the following constructs:

Users that have been given a limit cannot submit a print request with a higher priority level than the one assigned, nor can they change a request already submitted to have a higher priority. Any print requests submitted with priority levels higher than allowed will be given the highest priority allowed.

The third form of the command (with -u) removes any explicit priority limit for the specified users.

The fourth form of the command (with -q) sets the default priority limit for all users not explicitly covered by the use of the second form of this command.

The last form of the command (with -l) lists the default priority level and the priority limits assigned to users.

If you enter lpusers -?, the system displays the command usage message and returns 0.

Parameters

Item Description
LoginID Specifies a a user on the local system.
system_name!login-ID User on the system system_name
system_name!all Users on system system_name
all!login-ID User on all systems
all Users on the local system

Flags

Item Description
-d PriorityLevel Sets the system-wide priority default to PriorityLevel.
-l Lists the default priority level and the priority limits assigned to users.
-q PriorityLimit Sets the default highest priority level for all users not explicitly covered.
-q PriorityLimit -u LoginIDList Sets the default highest priority level users in LoginIDList can request when submitting a print request.
-u LoginIDList Removes any explicit priority level for the specified users.

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 AIX® Version 7.1 Security. For a list of privileges and the authorizations associated with this command, see the lssecattr command or the getcmdattr subcommand.