Sudoers file seems that has error:
sudo sudo: >>> /etc/sudoers: syntax error near line 56 <<< sudo: parse error in /etc/sudoers near line 56 sudo: no valid sudoers sources found, quitting sudo: unable to initialize policy plugin
I can connect to EC2 via SSH as ec2-user but can not edit sudoers file in order to fix the error.
visudo visudo: /etc/sudoers: Permission denied visudo: /etc/sudoers: Permission denied
Tried 'pkexec visudo':
pkexec visudo Error executing command as another user: No authentication agent was found.
What can I do at this point in order to fix /etc/sudoers file?