SET PASSEXP (Set password expiration date)
Use this command to set the expiration period for administrator and client node passwords. You can either set a common password expiration period for all administrators and client node passwords or selectively set password expiration periods.
You can override the SET PASSEXP setting for one or more nodes by using the REGISTER NODE or UPDATE NODE command with the PASSEXP parameter.
The NODE or ADMIN parameters must be specified to change the password expiration period for client nodes or administrators with selectively set password expiration periods. If you do not specify the NODE or ADMIN parameters, all client node and administrator passwords will use the new password expiration period. If you selectively set a password expiration period for a client node or administrator that does not already have a set password expiration period, it is not modified if you later set a password expiration for all users.
Privilege class
To issue this command, you must have system privilege.
Syntax
Parameters
- days (Required)
- Specifies the number of days that a password remains valid.
You can specify from 1 to 9999 if you do not specify the NODE or the ADMIN parameter. If you specify the NODE or the ADMIN parameter, you can specify from 0 to 9999. A value of 0 means that the password never expires. If a password expires, the server prompts for a new password when the administrator or client node contacts the server.
- Node
- Specifies the name of the node for which you are setting the password expiration period. To specify a list of nodes, separate the names with commas and no intervening spaces. This parameter is optional.
- Admin
- Specifies the name of the administrator whose password expiration period you would like to set. To specify a list of administrators, separate the names with commas and no intervening spaces. This parameter is optional.
Example: Set the administrator and client node password expiration
Set the administrator and client node password expiration period to 45 days.set passexp 45
Example: Set an administrator's password expiration
Set the administrator LARRY's password expiration period to 120 days.set passexp 120 admin=larry
Related commands
Command | Description |
---|---|
QUERY STATUS | Displays the settings of server parameters, such as those selected by the SET commands. |
REGISTER NODE | Defines a client node to the server and sets options for that user. |
RESET PASSEXP | Resets the password expiration for nodes or administrators. |
UPDATE ADMIN | Changes the password or contact information associated with any administrator. |
UPDATE NODE | Changes the attributes that are associated with a client node. |