Forgotten Password!? System Recovery!

Moderators: kirk, jamesbond, p310don, JakeSFR, step, Forum moderators

Post Reply
User avatar
stemsee
Posts: 658
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 0
Has thanked: 162 times
Been thanked: 104 times
Contact:

Forgotten Password!? System Recovery!

Post by stemsee »

My remastered fd64.sfs is exactly what I want. Its using a directory for saves. As I experiment in the cryptosphere taking on scammers I know that security is paramount. So I made a new root password that was super difficult. Resulted in being forgotten after two weeks of not using the system. I even forgot the previous password. I tried to alter the contents of the savefile but without success. So this is what i did to keep my system and change the password without knowing the old password.

1) Boot the system with a base.sfs with known or no password.

2) Extract the remastered base sfs to a directory.

3) chroot into that directory.

4) type passwd and follow instructions.

5) exit chroot

6) recompress that directory to fd64.sfs

7) copy it to your boot partition, replacing previous base sfs.

8) reboot without savefile

9) change password again using same password as latest.

10) quit system creating new savedirectory on shutdown

11) reboot and copy contents of new savedirectory to old savedirectory

12) reboot system with old savedirectory.

That worked for me!

User avatar
stemsee
Posts: 658
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 0
Has thanked: 162 times
Been thanked: 104 times
Contact:

Re: Forgotten Password !? System Recovery!

Post by stemsee »

This actually reveals a security vulnerability. Only if the remastered base sfs and save file/directory is encrypted could this be mitigated. Or if the basesfs had a way to prevent chroot passwd from working properly.

just a thought.

User avatar
rockedge
Site Admin
Posts: 5774
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2052 times
Been thanked: 2134 times
Contact:

Re: Forgotten Password !? System Recovery!

Post by rockedge »

I have been using this method when running @wiak's FirstRibIt.sh script and building frugal install capable distro's and there is no root password set or a user needs to be injected.

Post Reply

Return to “FatDog”