Linux modified /etc/sudoers and reported an error "No valid sudoers resource found, exit"

Accidentally, I modified the contents of the /etc/sudoers file and reported an error, as shown in the following figure:

 The solution is to replace sudo with pkexec, as follows:

pkexec vi /etc/sudoers

Perfect solution!

Guess you like

Origin blog.csdn.net/u013015629/article/details/129931484