kernelkit / infix

Linux :yellow_heart: NETCONF = Infix
https://kernelkit.github.io/
GNU General Public License v2.0
46 stars 12 forks source link

Odd Change password prompt at login #534

Closed troglobit closed 2 weeks ago

troglobit commented 1 month ago

Current Behavior

The following happens on a RiscV system:

Infix -- a Network Operating System v24.06.0-8-g6ed28059-dirty (ttyS0)
infix-00-00-00 login: admin
Password: 
You are required to change your password immediately (administrator enforced).
Changing password for admin.
Current password: 

Expected Behavior

Since everything in Infix is supposed to be managed by confd and the sysrepo models, this behavior was very unexpected.

Steps To Reproduce

No response

Additional information

On further investigation I find the following differences.

/etc/shadow on riscv target (sdcard w/ ext4):

admin:$5$mI/zpOAqZYKLC2WU$i7iPzZiIjOjrBF3NyftS9CCq8dfYwHwrmUK097Jca9A:0:0:99999:7:::

/etc/shadow on qemu x96_64 target (squashfs):

admin:$5$mI/zpOAqZYKLC2WU$i7iPzZiIjOjrBF3NyftS9CCq8dfYwHwrmUK097Jca9A:19911:0:99999:7:::

The ietf-system code in confd does nothing different depending on arch, so I can only conclude that something is different because of the rootfs.

troglobit commented 1 month ago

A 0 in the first field after the pwhash means "change password now".