root password suddenly stop working and can't be changed
Suddenly, root’s password stopped working from console. It is unable to login from console. However, it works from ssh connections (with an authorized key).
Since the issue arose unexpectedly, I do not have exact steps to reproduce it.
Trying to change the password for root from a ssh session the following error appears:
passwd: no record of root in /etc/shadow, using /etc/passwd: Numerical result out of range
This is the line in /etc/passwd for root
root:x:0:0:root:/root:/bin/ash
This is the line in /etc/shadow for root (without the hash)
root::16171:0:::::
Alpine version is 2.6.4, 32 bits, booting from USB stick.
Thank you!
(from redmine: issue id 2838, created on 2014-04-11, closed on 2014-05-29)
- Changesets:
- Revision 623c0906 by Natanael Copa on 2014-04-11T20:50:11Z:
main/busybox: fix login/su/passwd
fixes #2838