I installed a SSL certificated the day before. Today I wanted to log in to the server. When I try to "sudo" it gives me the following error message:
sudo: unable to stat /etc/sudoers: No such file or directory sudo: no valid sudoers sources found, quitting [enter image description here]sudo: unable to initialize policy plugin
when I "su -" it ask me for a password. However I have never made one I think.
I can remember that I typed in during the ssl certificate configuration the following line of code. And nothing really happened. I wanted to remove the whole "Letencrypt" stuff. However I later fixed the issue so there was no need to remove it. Maybe this helps..
rm -rf /path/to/your/git/clone/directory rm -rf ~/.local/share/letsencrypt rm -rf /etc/letsencrypt rm -rf /var/log/letsencrypt rm -rf /var/lib/letsencrypt
How can I get back root access?