1

I updated sudoers file with the following line

sudo ALL=(ALL) NOPASSWD:/usr/bin/docker

after save the changes, I can't run any sudo command and I can't edit sudoers file

I get the following error:

Sorry, user xxxx is not allowed to execute '/bin/bash' as root on xxxx.

How to fix the issue ?

Pablo Bianchi
  • 15,657

1 Answers1

0

Obviously not using the visudo which refuses to allow a badly formed config file. Boot with an install disk and revert your changes by editing the file while the / partition on the drive is mounted in a Terminal session.