Parece que uma senha vazia não corresponde aos requisitos de complexidade da senha.
Isso é o que eu encontrei em man passwd
As a general guideline, passwords should consist of 6 to 8 characters including one or
more characters from each of the following sets:
· lower case alphabetics
· digits 0 thru 9
· punctuation marks
Care must be taken not to include the system default erase or kill characters. passwd will reject any password which is not
suitably complex.
EDIT: Infelizmente, você não pode definir a senha para esvaziar através dessa interface do usuário.
link
é a função que decide se o botão "Change" deve ser ativado ou não.
if (strlen (password) < MIN_PASSWORD_LEN) {
can_change = FALSE;
if (password[0] == '#define MIN_PASSWORD_LEN 6
') {
tooltip = _("You need to enter a new password");
}
else {
tooltip = _("The new password is too short");
}
}
else if (strcmp (password, verify) != 0) {
can_change = FALSE;
if (verify[0] == 'As a general guideline, passwords should consist of 6 to 8 characters including one or
more characters from each of the following sets:
· lower case alphabetics
· digits 0 thru 9
· punctuation marks
Care must be taken not to include the system default erase or kill characters. passwd will reject any password which is not
suitably complex.
') {
tooltip = _("You need to confirm the password");
}
else {
tooltip = _("The passwords do not match");
}
}
else if (!um->old_password_ok) {
can_change = FALSE;
if (old_password[0] == ' if (strlen (password) < MIN_PASSWORD_LEN) {
can_change = FALSE;
if (password[0] == '#define MIN_PASSWORD_LEN 6
') {
tooltip = _("You need to enter a new password");
}
else {
tooltip = _("The new password is too short");
}
}
else if (strcmp (password, verify) != 0) {
can_change = FALSE;
if (verify[0] == '%pre%') {
tooltip = _("You need to confirm the password");
}
else {
tooltip = _("The passwords do not match");
}
}
else if (!um->old_password_ok) {
can_change = FALSE;
if (old_password[0] == '%pre%') {
tooltip = _("You need to enter your current password");
}
else {
tooltip = _("The current password is not correct");
}
}
else {
can_change = TRUE;
tooltip = NULL;
}
gtk_widget_set_sensitive (um->ok_button, can_change);
') {
tooltip = _("You need to enter your current password");
}
else {
tooltip = _("The current password is not correct");
}
}
else {
can_change = TRUE;
tooltip = NULL;
}
gtk_widget_set_sensitive (um->ok_button, can_change);
A senha mínima len 6 é codificada: (
link
%pre%