Can't Login - Can I reset admin password?

Post Reply
chumby
Posts: 59
Joined: Sat Dec 14, 2013 1:09 pm
languages_spoken: english
ODROIDs: U2
Has thanked: 0
Been thanked: 0
Contact:

Can't Login - Can I reset admin password?

Post by chumby »

Hi all,

Have fired up my old Odroid-u2. It appears to be running Lubuntu 14

I am trying to update the software on user odroid@odriod but it is not accepting odroid as the password.

Is there any way I can change the admin password so I can update this device?

Cheers
Martin

User avatar
mad_ady
Posts: 11194
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4 (HC1, HC2), C1+, C2, C4 (HC4), N1, N2, H2, Go, Go Advance, M1
Location: Bucharest, Romania
Has thanked: 647 times
Been thanked: 1055 times
Contact:

Re: Can't Login - Can I reset admin password?

Post by mad_ady »

Yes, but you'll need access to a linux system. Take out your sd/emmc. Put it in a reader and connect it to the working system. Mout the rootfs (second partition). Make a backup of etc/shadow. Open it with an editor as root and replace the root hash with a hash known to work (e.g. from the host system).
Unmount, replug jnto your odroid, reboot and it should work.

User avatar
meveric
Posts: 11978
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked: 81 times
Been thanked: 641 times
Contact:

Re: Can't Login - Can I reset admin password?

Post by meveric »

mad_ady wrote:
Sat Dec 04, 2021 6:18 pm
Yes, but you'll need access to a linux system. Take out your sd/emmc. Put it in a reader and connect it to the working system. Mout the rootfs (second partition). Make a backup of etc/shadow. Open it with an editor as root and replace the root hash with a hash known to work (e.g. from the host system).
Unmount, replug jnto your odroid, reboot and it should work.
or you could use a chroot inside the sd/eMMC from the other linux system and do a passwd to set a new password :D
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

User avatar
mad_ady
Posts: 11194
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4 (HC1, HC2), C1+, C2, C4 (HC4), N1, N2, H2, Go, Go Advance, M1
Location: Bucharest, Romania
Has thanked: 647 times
Been thanked: 1055 times
Contact:

Re: Can't Login - Can I reset admin password?

Post by mad_ady »

You'd need to install qemu if it's not the same architecture.

Post Reply

Return to “Issues”

Who is online

Users browsing this forum: No registered users and 1 guest