The solution to the /etc/sudoers: syntax error error in the sudoer file in linux

>>> /etc/sudoers: syntax error near line 1 <<<
sudo: parse error in /etc/sudoers near line 1
sudo: no valid sudoers resource found, exiting
sudo: unable to initialize policy plugin
 

Solution

cd /etc/
pkexec visudo

After entering the command, the sudoers file can be opened again

Guess you like

Origin blog.csdn.net/weixin_45889893/article/details/128528690