MAXUSERS Command

The MAXUSERS command sets the maximum number of users who can log on to the system at any one time.

Format

MAXUSERS [number] [(I)]

Parameter(s)

number

Number of users who are allowed to log on to the system at any one time.

I

Recalculates the number of users currently logged on. Use the I option only when CURRENT # USERS displayed by the WHAT command is invalid.

Description

The MAXUSERS command is useful when you want to restrict access to the system. Users who are currently logged on to the system are not affected by the MAXUSERS command, even if they log to another account. Once they log off, however, they will not be allowed to log on if the maximum number of users has been reached.

Neither the system console (process 0) nor any process assigned as the system console is affected by the MAXUSERS command. Such processes can always log on, regardless of the current MAXUSERS setting.

When you need to have all users log off the system and stay off, use MAXUSERS to set the number of users to 0. When this is done, all requests to log on, except those from the system console, will be denied.