Modify

Opened 10 years ago

Closed 10 years ago

#2887 closed defect (fixed)

busybox - shadow passwords

Reported by: michu-at-neophobdotcom Owned by: developers
Priority: normal Milestone:
Component: packages Version:
Keywords: Cc:

Description

I've enabled shadow passwd in my busybox configuration. When I try to change my password this does not work because no /etc/shadow file exists. When I create this file I'm able to change my password but /etc/shadow is not used:

Password is NOT changed:

root@OpenWrt:~# passwd
passwd: no record of root in /etc/shadow, using /etc/passwd
Changing password for root
New password:
Retype password:
passwd: cannot update password file /etc/shadow

Password update will work, but only for the file /etc/passwd:

root@OpenWrt:~# touch /etc/shadow
root@OpenWrt:~# passwd
passwd: no record of root in /etc/shadow, using /etc/passwd
Changing password for root
New password:
Bad password: too short
Retype password:
Password for root changed by root
root@OpenWrt:~#

Attachments (0)

Change History (2)

comment:1 Changed 10 years ago by anonymous

Have you tried to put something like this in /etc/shadow?

root:*:13792:0:::::

Maybe then you won't get the "passwd: no record of root in /etc/shadow, using /etc/passwd" message and it'll change (create) the password...

comment:2 Changed 10 years ago by blogic

  • Resolution set to fixed
  • Status changed from new to closed

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.