#18206: Password reset after upgrading
------------------------+----------------------------------
  Reporter:  anonymous  |      Owner:  developers
      Type:  defect     |     Status:  new
  Priority:  normal     |  Milestone:  Chaos Calmer (trunk)
 Component:  packages   |    Version:  Trunk
Resolution:             |   Keywords:
------------------------+----------------------------------

Comment (by hnyman):

 I now updated from 45031 to 45052 and lost the password again. After
 sysupgrade the dates of passwd and shadow do not match:
 {{{
 root@OpenWrt:/etc# ls -l passwd shadow
 -rw-rw-r--    1 root     root           190 Oct 24 19:39 passwd
 -rw-------    1 root     root           115 Oct 24 17:14 shadow
 }}}

 I have a theory that this was caused by r43017 and has already been fixed
 with r43041. The passwd disappears if you sysupgrade from 43017-43040.
 (Around 43017 there were several intertwined tweaks to the scripts. So it
 may also have been one of the other related check-ins)

 Jow comments in r43041:
 {{{
 Changeset r43017 reworked the ipkg control metadata generation but broke
 the export of conffiles, postinst and prerm defines.

 Change the code back to rely on shvar and shexport, this is required to
 properly output multiline contents.
 }}}

 I suppose that somehow the definition of "conffiles to keep" of the base-
 files package does not properly include /etc/shadow. Support for shadow
 has been added later, and it is probably not defined quite that deeply in
 the code as /etc/passwd is.

--
Ticket URL: <https://dev.openwrt.org/ticket/18206#comment:6>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to