After all these years of using Linux, I have never goofed up this badly. I should have known better, I honestly don't know what I was thinking.
While trying to fix a small error message I was getting (this is irrelevant to my now much bigger issue), I found a post that said to "just run pacdiff and overwrite old files", and without much looking into it, I began to overwrite..
I guess I did have the fortitude to back up
/etc/shadow before overwriting it and stopped overwriting after just a few entries, but I am now locked out of root and all my users. I'm on the computer right now as I'm scared to restart as I also overwrote
/etc/grub.d (which I did not backup)! The
/etc/shadow backup is in my
/home and is owned by root so I cannot read it now, but I do have it.
What exactly does
(O)verwrite with pacnew do? I have found instructions to recover /etc/shadow file, but will I be able to get into
grub-boot loader on restart now?
My root and home partition are not encrypted, but I do have a LUKS encrypted partition. If worse comes to worse, and I have to reinstall without formatting my
/home and encrypted partition, is any instance of
cryptsetup able to open a LUKS encrypted partition with the passphrase? The information to mount and open is stored in the LUKS partition header, so I should be good, right? I am unable to find out which cipher I am using as I don't have root access, but I'm almost positive it's whatever the default is.
How do I proceed from here? I'm not going to shutdown this machine until I have a plan in place. I'm on a dual boot Manjaro/Windows. I do have a bootable Manjaro USB made and another machine if need be. Any help would be much appreciated. This is not my proudest moment, but a great lesson learned. I need you guys more than ever.