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.
๐ฝ
Enterprise Infrastructure & Security Support
Need assistance hardening your network perimeter, orchestrating Hyper-V clusters, deploying SentinelOne EDR, or configuring multi-tenant Microsoft 365 environments? Pat's IT Solutions, LLC provides enterprise-grade co-managed IT, 24/7/365 monitoring, and weekend SLAs for commercial organizations across New Jersey.
Schedule an Infrastructure Audit →
Phone: Reveal Direct Line

No comments:
Post a Comment