Bug 14511

Summary: when login or run passwd as root it comes out with id 0 unknown.
Product: Busybox Reporter: Georgi <georgimirzoyan>
Component: OtherAssignee: unassigned
Status: NEW ---    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: 1.33.x   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

Description Georgi 2022-01-11 14:12:00 UTC
It seems that it's a parsing issue.
When my /etc/passwd is root::0:0:root:/root:/bin/bash
Error is there.
When I manually put x in /etc/passwd like this
root:x:0:0:root:/root:/bin/bash
then it works fine I am able to change the password.

When I revert the commit c9fc15359ef8fe5aa98ab0308c1563d9bcf99bb8 it work fine.
Comment 1 Georgi 2022-01-11 14:14:10 UTC
My config is:
grep PASSWD .config
CONFIG_FEATURE_SHADOWPASSWDS=y
CONFIG_CHPASSWD=y
CONFIG_FEATURE_DEFAULT_PASSWD_ALGO="des"
CONFIG_MKPASSWD=y
CONFIG_PASSWD=y
CONFIG_FEATURE_PASSWD_WEAK_CHECK=y