5.1.6 Ensure all local user accounts have valid stanzas in /etc/security/passwd

Information

AIX uses two files to store information about local user accounts, the traditional /etc/passwd and also /etc/security/passwd This latter file stores hashed passwords and metadata about the user account such as the last password change and whether the account is permitted to login.

If an account exists that does not have a valid stanza in /etc/security/passwd then it is possible that under certain combinations of circumstances this is equivalent to that account having a blank password and thus multiple users may access the account without authentication and leave a weak audit trail. An attacker may gain unauthorized system access or perform malicious actions, which then cannot be attributed to any specific individual.

Solution

Run the one of the following commands to remediate the identified issues:

pwdck -t ALL

-- OR --

pwdck -y ALL

Note: Running the command with the -t flag will provide information about each action and prompt you to approve, whilst running it with the -y flag will automatically fix all errors and report the changes.

See Also

https://workbench.cisecurity.org/benchmarks/19066

Item Details

Category: IDENTIFICATION AND AUTHENTICATION

References: 800-53|IA-5(1), CSCv7|4.4

Plugin: Unix

Control ID: 0de1dbea04c16873d4fcea37d062928866677a3eec9a53a17c02e483ac4ee7b6