Bug 14511 - when login or run passwd as root it comes out with id 0 unknown.
Summary: when login or run passwd as root it comes out with id 0 unknown.
Status: NEW
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: 1.33.x
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-11 14:12 UTC by Georgi
Modified: 2022-01-11 14:14 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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