Previous Topic: GETENTRY Command: Return Codes and Error MessagesNext Topic: GRANT AUTHORITY Command


GETPWEXP Command

Use the GETPWEXP command to obtain information the date when a user LOGON password is set to expire.

GETPWEXP [userid] [("Options"]

Options:
[FILE [filename]]
[MSG | NOMSG ]
[STACK [FIFO | LIFO]]
[FIFO]
[LIFO]

Note: Options can be entered in any order.

Authorizations

You must have GETPWEXP authorization through a GRANT GETPWEXP record in the AUTHORIZ CONFIG file to be able to obtain password expiration information.

To use the GETPWEXP command on user IDs other than your own, you must have a GRANT GETPWEXP OVER userid TO userid record in the AUTHORIZ CONFIG file.

Note: For more information, see the section "Granting Authorizations to Use Commands on Only Some User IDs" in the chapter "Authorizations" of the Administration Guide.

Definitions

[userid]

Specifies the name of a USER or IDENTITY directory entry whose password expiration you want to see. If a user ID is not specified, the password expiration information is collected for the requesting user ID.

[FILE [filename]]

Appends the results of the command to the specified file. The default filename is GETPWEXP; the filetype is always RESULTS. The file is created if it does not already exist, but is appended to if it does exist.

[MSG | NOMSG]

Controls the output messages.

[STACK [FIFO | LIFO]]
[FIFO]
[LIFO]

Stacks the results in your program stack.

Note: For more information about the FILE, MSG|NOMSG, and STACK options, see Common API Command Options.

Examples