Check /etc/pam.d/passwd
and any other files @include
d by it.
You should find a line that begins with the word password
and mentions the PAM Unix-style password storage module: pam_unix.so
. The options specified to it control which password hashing algorithm is used and which checks are applied when setting new passwords to /etc/shadow
. Your distribution should include a man page for pam_unix.so
, although the exact way to view it can vary a little - try man pam_unix
, and if it does not work, man pam_unix.so
. The obscure
and minlen=N
options might be the ones causing the system to reject some password candidates.
There may be other PAM modules participating in password quality checking, too: any PAM configuration line that begins with the word password
specifies a module that participates in the password setting process. For example, there might be a pam_passwdqc.so
or pam_cracklib.so
module.
In addition, the legacy file /etc/login.defs
might still contain some password-related settings, depending on the distribution.
However: if you choose to use simple passwords, make sure your system does not contain any internet-accessible services that would use them for authentication! Malware developers are clever, and often find non-obvious ways to abuse any services they can gain access to.