Please note the new address for this forum : forum.excito.org. The old address redirects here but I don't know for how long. Thanks !
New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

Forgot my root password

Got problems with your B2 or B3? Share and get helped!
Post Reply
jeff
Posts: 20
Joined: 24 Oct 2012, 00:12

Forgot my root password

Post by jeff »

Hi guys

I feel like a total idiot but I had the bright idea of changing the default root password and now I can't remember it.

Is there a way to reset this somehow? I've had a look online but all the references I have found so far involve using the boot loader. Without visual access to the boot process I'm not sure how this could be possible with the B3. Are there any other options? I'm hoping I might be able to use my rescue/re-install USB drive some how?

I would prefer not to have to re-install.

Thanks
Jeff
Ubi
Posts: 1549
Joined: 17 Jul 2007, 09:01

Re: Forgot my root password

Post by Ubi »

If you can get an install image onto a USB, you can alter the config files to turn it into a rescue-USB (this is explained in the wiki). From there, use chroot to move your environment to the original disk. Then you can use passwd to change the passwd for root

It's a bit like these solutions:
https://www.google.nl/search?q=reset+ro ... ng+live+cd
Cheeseboy
Posts: 789
Joined: 08 Apr 2007, 12:16

Re: Forgot my root password

Post by Cheeseboy »

Have you got sudo installed and configured for your normal user?
If so, you can just:

Code: Select all

$ sudo su
# passwd
jeff
Posts: 20
Joined: 24 Oct 2012, 00:12

Re: Forgot my root password

Post by jeff »

Thanks guys

Ubi your instructions were spot on, I have reset my password.

Cheeseboy, I've installed sudo just in case it happens again

Cheers
Jeff
Post Reply