System Administration Guide
Chapter 1, Administering user accounts

Customizing password checking

Customizing password checking

The goodpw(ADM) utility also allows you to customize password checking. The file /etc/default/goodpw contains the password control settings. These settings allow you to specify if passwords are checked against dictionary words, word rotations, and user, group, and system names.

NOTE: Password checking can also be set by editing /etc/default/passwd and changing the value of GOODPW as follows:

YES use goodpw
NO use standard UNIX system checking 
NONE perform no password checking

You can also define regular expressions (character combinations and arrangements) that all passwords must match (or not match) with the files /usr/lib/goodpw/match and /usr/lib/goodpw/reject, respectively. See goodpw(ADM) for more information.