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 ?
id && sudo --list
. Did you edit withsudo visudo -f /etc/sudoers
? You should avoid edit /etc/sudoers directly – Pablo Bianchi Feb 28 '21 at 22:31Thanks a lot ^^
– Wasfi Alzoubi Feb 28 '21 at 22:48