I have a Raspberry Pi 4 that I haven't used in a little bit, and I've forgotten the password. I know it's running Raspbian Lite, no idea which version. I'd really hate to wipe it, there were many hours of setup that went into it.
I've read some posts about starting by editing the /etc/shadow
file, but I can't seem to find it when I plug my micro SD card into my MAC, even when revealing hidden files.
I've also tried adding init=/bin/sh
to the end of the cmdline.tx
t file, but to no avail. When I do that, in fact, I can't even SSH into the Pi, seems like it's not quite booting right.
Any thoughts on this pickle?