[Bug 6368] New: busybox passwd extrange behavior

bugzilla at busybox.net bugzilla at busybox.net
Tue Jul 9 15:57:29 UTC 2013


https://bugs.busybox.net/show_bug.cgi?id=6368

           Summary: busybox passwd extrange behavior
           Product: Busybox
           Version: 1.19.x
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P5
         Component: Standard Compliance
        AssignedTo: unassigned at busybox.net
        ReportedBy: robertorebolledocft at gmail.com
                CC: busybox-cvs at busybox.net
   Estimated Hours: 0.0


Created attachment 4976
  --> https://bugs.busybox.net/attachment.cgi?id=4976
Config file for busybox.

I am getting a wrong behavior using passwd & chpasswd. After command is
executed, uid of user is changed.
Uid is change by the value in “last password change”, stored in 3rd field of
/etc/shadow.

Before password change:
/etc/passwd:root:x:0:0:root:/root:/bin/sh
/etc/shadow:root::10933:0:99999:7:::

After password change:
/etc/passwd:root:x:15894:0:root:/root:/bin/sh
/etc/shadow:root:Fw1jnPmhFJmQ6:15894:0:99999:7:::

Tested in busybox: 1.19.4, 1.20.0, 1.21.0

How do I have to compile busybox to get the right behavior?

The emmbeded device is based on the at91sam9261ek.
If i build the rootfs image with root password and then i change the password
for root with passwd i dont get this error.

Best Regards,
Roberto Rebolledo.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list