Manage Account Lockout
You can edit certain configuration settings to manage account lockout behavior on your system.
Note: Tenable Core images built in September 2025 or later do not lock out accounts with expired passwords. Tenable Core images built before September 2025 lock out accounts 30 days after password expiration.

-
In Tenable Core, log in to the shell via the Terminal page or the console.
-
Run the following command:
sudo /usr/libexec/tenablecore/unlock_admins.py --confirm
Note: If the system returns with "sudo: /usr/libexec/tenablecore/unlock_admins.py: command not found" refer to the following section: To change lockout settings.

Tip: Tenable strongly recommends that you enable account lockout if your internal policies allow it.
To check what a user’s current setting is:
-
In Tenable Core, log in to the shell via the Terminal page or the console.
-
Run the following command:
chage -l <username> | grep 'Password inactive'
When locking is enabled for the named user, this outputs a date by which the password must be changed in order to avoid account lockout. For example:
Password inactive : Aug 24, 2025
Or, when locking is disabled for this user:
Password inactive : never

-
In Tenable Core, log in to the shell via the Terminal page or the console.
-
Run the following command, where <ndays> is the number of days after password expiration that the account should be locked (-1 for never):
sudo chage -I <ndays> <username>

-
In Tenable Core, log in to the shell via the Terminal page or the console.
-
Run the following command:
useradd -D | grep INACTIVE
-
If locking is enabled for 30 days (for example) after password expiration then this outputs:
INACTIVE=30
Or, if locking is disabled:
INACTIVE=-1

-
In Tenable Core, log in to the shell via the Terminal page or the console.
-
Run the following command, where <ndays> is the default number of days after password expiration that accounts should be be locked (-1 for never):
sudo useradd -D -f <ndays>