5.4.1.4 Ensure inactive password lock is 30 days or less - users

Information

User accounts that have been inactive for over a given period of time can be automatically disabled. It is recommended that accounts that are inactive for 30 days after password expiration be disabled.

Rationale:

Inactive accounts pose a threat to system security since the users are not logging in to notice failed login attempts or other anomalies.

Solution

Run the following command to set the default password inactivity period to 30 days:

# useradd -D -f 30

Modify user parameters for all users with a password set to match:

# chage --inactive 30 <user>

Notes:

You can also check this setting in /etc/shadow directly. The 7th field should be 30 or less for all users with a password.

Note: A value of -1 would disable this setting.

See Also

https://workbench.cisecurity.org/files/2619

Item Details

Category: ACCESS CONTROL, IDENTIFICATION AND AUTHENTICATION

References: 800-53|AC-2, 800-53|IA-5(1), CSCv6|16.1, CSCv6|16.6, CSCv7|4.4, CSCv7|16

Plugin: Unix

Control ID: 05f787272021142e2ca5c867e35c95e5e089642239c5b3a81df24310ce1d6236