If /etc/sudoers file is damaged/changed so that sudo command cannot be invoked, the best method of saving the world is to call utility 'pkexec':
pkexec command_to_run
For example, to edit the /etc/sudoers file is simply
pkexec visudo
A weblog sharing great ideas, theory, and implementations in data, sciences, and beyond.