Skip to content

NixOS must enforce 24 hours/one day as the minimum password lifetime.

An XCCDF Rule

Description

Enforcing a minimum password lifetime helps to prevent repeated password changes to defeat the password reuse or history enforcement requirement. If users are allowed to immediately and continually change their password, then the password could be repeatedly changed in a short period of time to defeat the organization's policy regarding password reuse.

ID
SV-268132r1039284_rule
Version
ANIX-00-000790
Severity
Medium
References
Updated

Remediation Templates

A Manual Procedure

Configure NixOS operating system to enforce 24 hours/one day as the minimum password lifetime. 

Add/modify /etc/nixos/configuration.nix to include the following lines:

environment.etc."login.defs".text = pkgs.lib.mkForce ''
PASS_MIN_DAYS 1