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.txt 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?