It looks like I made a mistake in the sudoers file.
I am not able anymore to login as root with sudo -i
, I always get:
>>> /etc/sudoers: Syntaxfehler near line 38 <<<
>>> /etc/sudoers: Syntaxfehler near line 39 <<<
sudo: Syntax-Fehler in /etc/sudoers bei der Zeile 38
sudo: Keine gültige sudoers-Quelle gefunden, Programmende
sudo: Regelwerks-Plugin konnte nicht initialisiert werden
So I tried to edit the sudoers file, but I get Error on reading file, no permissions
.
So I entered recovery mode and voila, I can see the file content, but I cannot edit it.
How can I possibly fix this without reinstalling Ubuntu?
visudo
tool to avoid basic syntax errors while modifying thesudoers
file.single
boot option does, but it might be useful next time to get you logged in