Forgotten root password

Discussion about U-Boot and the kernel.

Forgotten root password

Postby dantheman120 » Thu Apr 19, 2012 8:47 pm

Hi,
I'm running linux kernel on mobile arm platform. Using uboot/ubl to boot. Managed to loose root password.

Anyone know the best way to recover it?

Only access to the device is through dropbear and the uboot environment.

Thanks
dantheman120
 
Posts: 2
Joined: Thu Apr 19, 2012 8:43 pm

Re: Forgotten root password

Postby WarheadsSE » Thu Apr 19, 2012 9:08 pm

if your uboot supports tftp, then I'd say tftp a kernel & initramfs with the tools needed to edit it on the device.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

[RESOLVED]Re: Forgotten root password

Postby dantheman120 » Sun Apr 22, 2012 10:43 pm

I managed to sort it out another way:
Hell and I thought Linux was mean't to be secure!

Uboot passes a whole lot of parameters to the kernel before it boots. These are stored under the bootargs varible. You simply need to append "init=/bin/sh" (or path to the shell you are using) to the end of these arguments for the kernel to boot straight into the shell. You can then set password as normal (passwd)
dantheman120
 
Posts: 2
Joined: Thu Apr 19, 2012 8:43 pm

Re: Forgotten root password

Postby WarheadsSE » Mon Apr 23, 2012 1:22 am

Why do you think that people keep the servers under lock, key, cage and camera?
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm


Return to U-Boot/Kernel

Who is online

Users browsing this forum: No registered users and 26 guests