I deleted all
common-* files in
/etc/pam.d folder and now I am locked out. I am running Ubuntu 14.04. I did backup all these files in a folder inside
pam.d but now I can't even move them. If I try, I get a permission error. If I add sudo, I get this error:
sudo: unable to initialize PAM: No such file or directory
Here are things I tried and failed:
sudo pam-auth-update --force(get above error)
- Went into recovery mode and ran "Repair broken packages"
Went to recovery mode, and chose 'root - Drop to root shell prompt'. When I hit enter, I get this:
Give root password for maintenance. (or type Control-D to continue)**
I never set any password for the root account and I believe it might be disabled. I get access to the console via the web and do not have access physically.
I did tons of searching on Google and almost all point to using LiveCD which is not an option for me. Is there anything else I can do to fix it?