set expiration
To set an expiration date for a local user account, use the
set expiration
command.
set expiration
{{
apr
|
aug
|
dec
|
feb
|
jan
|
jul
|
jun
|
mar
|
may
|
nov
|
oct
|
sep
}
day year
}
Syntax Description
The three-letter month abbreviation.
{
apr
|
aug
|
dec
|
feb
|
jan
|
jul
|
jun
|
mar
|
may
|
nov
|
oct
|
sep
}
Numeric day of the month; valid values are 1 through 31.
day
Numeric year for expiration; maximum value is 2037.
year
Command Modes
Local user mode—to specify an expiration date for the current local user.
Command History
Modification
Release
Command added.
1.1(1)
Usage Guidelines
After you configure a user account with an expiration date, you cannot reconfigure the account to not expire.
You can however, reconfigure the account with a different expiration date.
Example
This example shows how to enter security mode, create a new local user account and specify an
expiration date for that account:
FP9300-A#
scope security
FP9300-A /security #
create local-user test_user
FP9300-A /security/local-user* #
set expiration dec 31 2019
FP9300-A /security/local-user* #
commit-buffer
FP9300-A /security/local-user #
Related Commands
Description
Command
Creates a new local user account.
create local-user
Specifies a password for a user account.
set password
Cisco Firepower 4100/9300 FXOS Command Reference
186
S Commands
set expiration
Summary of Contents for Firepower 4100 Series
Page 4: ...Cisco Firepower 4100 9300 FXOS Command Reference 2 About the FXOS CLI Command Reference Guide ...
Page 25: ...P A R T I A R Commands A C Commands on page 25 D R Commands on page 81 ...
Page 26: ......
Page 122: ...Cisco Firepower 4100 9300 FXOS Command Reference 120 A R Commands return ...
Page 124: ......
Page 236: ...Cisco Firepower 4100 9300 FXOS Command Reference 234 S Commands set vlan ...
Page 379: ...P A R T III T W Commands T W Commands on page 379 ...
Page 380: ......
Page 390: ...Cisco Firepower 4100 9300 FXOS Command Reference 388 T W Commands where ...
Page 391: ...P A R T IV connect shell Commands connect shell Commands on page 391 ...
Page 392: ......