Procedure:
1. Connect file system to another Debian machine
2. Mount file system and verify:
- lsblk (find sdx1 device)
- sudo mkdir /mnt/microsd
- sudo mount /dev/sdx1 /mnt/microsd
- ls /mnt/microsd
3. Open shadow file in nano
- sudo nano /mnt/microsd/etc/shadow
user:asdfasdfasdf$$$$asdfasdfasdfsadfasdf::17178:0:98899:7:::
5. You must remove the fist field between : and :
user:THIS_IS_WHAT_WAS_REMOVED:17178:0:98899:7:::
6. Unmount the file system from the rescue machine.
- umount /mnt/microsd
7. Reconnect to target OS via serial.
8. Boot and login with root.
9. Change password with passwd.
๐ฝ
No comments:
Post a Comment