9.3 Ensure Password Fields are Not Empty - Verify no accounts are returned by 'logins -p'

Information

An account with an empty password field means that anybody may log in as that user without providing a password at all (assuming that PASSREQ=NO in /etc/default/login).

Solution

Use the passwd -l command to lock accounts that are not permitted to execute commands (shown by *LK* in the password field). Use the passwd -N command for accounts that do not use a password to login but must execute commands (shown by NP in the password field).

See Also

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

Item Details

Category: IDENTIFICATION AND AUTHENTICATION

References: 800-53|IA-5(1)(a)

Plugin: Unix

Control ID: 5b211d33018e307fce6281110b52b8f141dbf9996092c84080a7f82d73b9cd9b