-2

I accidentally changed the mode of the file /etc/sudoers and added a line to the file.

Now every time I want to "sudo", I got a error message like "parse error in /etc/sudoers near line 21"

I can't login as a root also now. How can I solve this.

Abhi
  • 97
  • 1

1 Answers1

1

You can try this:

pkexec visudo 
MrTeera
  • 346
  • 2
  • 9