Information
The macOS system must disable accounts after 35 days of inactivity.
GROUP ID: V-259552RULE ID: SV-259552r1038915
The macOS must be configured to disable accounts after 35 days of inactivity.
This rule prevents malicious users from making use of unused accounts to gain access to the system while avoiding detection.
Solution
Configure the macOS system to disable accounts after 35 days of inactivity with the following command.
This setting may be enforced using local policy or by a directory service.
To set local policy to disable an inactive user after 35 days, edit the current password policy to contain the following within the "policyCategoryAuthentication":
[source,xml]
[source,bash]
/usr/bin/pwpolicy setaccountpolicies $pwpolicy_file