After I open a terminal, I run sudo su
. But it then gives me
>>> /etc/sudoers: syntax error near line 27 <<< sudo: parse error in /etc/sudoers near line 27 sudo: no valid sudoers sources found, quitting sudo: unable to initialize policy plugin
I tried running su
and then input the password but the terminal closes after a few seconds. What command do I use to become root? Also, I'm on Ubuntu 18.
visudo
to edit sudoers has a check for invalid edits to prevent this from happening.