SOLVED V6.9 update locked me out. Reset passwords?

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
Exderste
Posts: 2
Joined: Sun Jun 10, 2018 7:52 am

SOLVED V6.9 update locked me out. Reset passwords?

Post by Exderste »

Unfortunately I cannot login to my DietPi after updating from v6.7 to v6.8.

The installer prompted me about setting a new password, which I declined (because I already had changed my root password after setting up the system). THEN it requested me to change the password for the unix user, which I did. But now NONE of the passwords are working any more, I tried every combination of them.
Same behavior via SSH and working directly on the Pi.

Is there any way resolving this NOT requiring starting from scratch?

Can I restore my dietpi-backup without logging in? :-)
Last edited by Exderste on Sun Jun 10, 2018 9:54 am, edited 1 time in total.
Exderste
Posts: 2
Joined: Sun Jun 10, 2018 7:52 am

Re: V6.9 update locked me out. Reset passwords?

Post by Exderste »

Solution for me:
- shutdown the dietpi (has to be hooked up to a display for that, because you only can restart it using ctrl-alt-del and wait for the right moment to cut the power)
- put the sd card in a reader
- fire up a linux vm, mount the card
- mv /etc/shadow- /etc/shadow

Turns out that the updater changed BOTH the dietpi and the root user's password. But neither of them to what I entered...
Narfel
Posts: 17
Joined: Wed Jan 31, 2018 10:19 am

Re: SOLVED V6.9 update locked me out. Reset passwords?

Post by Narfel »

Exact same thing happened to me. Most recent image, changed password, updated to the most recent packages. Reboot. Could login. Literally installed only mc from software menu, wanted a reboot. No more login on both users. Neither any default pws nor any of them that i set.
User avatar
MichaIng
Site Admin
Posts: 2259
Joined: Sat Nov 18, 2017 6:21 pm

Re: SOLVED V6.9 update locked me out. Reset passwords?

Post by MichaIng »

@Narfel
Which password did you choose? Perhaps there is some special character expended unintentionally.
Narfel
Posts: 17
Joined: Wed Jan 31, 2018 10:19 am

Re: SOLVED V6.9 update locked me out. Reset passwords?

Post by Narfel »

I could not do anything so I did a reinstall and used different passwords and created a 3rd sudo user for safety. No issues anymore on this front.
User avatar
MichaIng
Site Admin
Posts: 2259
Joined: Sat Nov 18, 2017 6:21 pm

Re: SOLVED V6.9 update locked me out. Reset passwords?

Post by MichaIng »

Great it works now. However if you remember your old password, especially some non a-z and 0-9 characters, would be great if you could provide them so I can run some tests which one might lead to the failure.
Post Reply