#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:
Has a Patch: no 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 Changed 21 months ago by waddlesplash

I changed MAX_SHADOW_PWD_PASSWORD_LEN to 135 and rebuilt, and that had no effect.

comment:2 Changed 21 months ago by diver

Component: System/Boot LoaderSystem/libroot.so

comment:3 Changed 20 months ago by pulkomandy

Resolution: fixed
Status: newclosed

Fixed in hrev51604.

Note: See TracTickets for help on using tickets.