Opened 7 years ago
Closed 7 years ago
#13733 closed bug (fixed)
Password unset after reboot
Reported by: | jalopeura | Owned by: | nobody |
---|---|---|---|
Priority: | normal | Milestone: | R1/beta1 |
Component: | System/libroot.so | Version: | R1/Development |
Keywords: | passwd password | Cc: | |
Blocked By: | Blocking: | ||
Platform: | All |
Description
If you use passwd to change your password, when you reboot, your password is unset. (Not sure whether it reverts to the default password or you just have no password at all.)
The problem seems to be related to #12365; when that change was made, the generated password hash increased in size from 128 to 135, but the constant MAX_SHADOW_PWD_PASSWORD_LEN in headers/private/libroot/user_group.h did not change.
I think the solution is as simple as just changing that constant, but the passwd program uses the same constant to check length of the plaintext password entered by the user. So it might be better to have two constants; one for plaintext passwords that can remain at 128, and one for the shadow password strings, that should be set to 135.
Change History (3)
comment:1 by , 7 years ago
comment:2 by , 7 years ago
Component: | System/Boot Loader → System/libroot.so |
---|
I changed MAX_SHADOW_PWD_PASSWORD_LEN to 135 and rebuilt, and that had no effect.