- The total number of password change tries can be configured
- Except min length, password strength checks can be disabled
- Even the root user can have password strength checks...
- ... except in some cases (stdin, command line arguments)
In general, this code does not run for PAM, except root directory
is modified through command line arguments by root user.
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
/*
* Get the new password. The user is prompted for the new password
- * and has five tries to get it right. The password will be tested
- * for strength, unless it is the root user. This provides an escape
- * for initial login passwords.
+ * and has PASS_CHANGE_TRIES tries to get it right. The password will
+ * be optionally tested for strength. The root user can circumvent
+ * tests. This provides an escape for initial login passwords.
*/
method = getdef_str ("ENCRYPT_METHOD");
if (NULL == method) {