From: https://www.cnblogs.com/starsea/p/4926658.html
Ubuntu USES viM for adding user permissions
/etc/sudoers
File editing, save and exit, sudo SU and other commands have been reported as follows:
sudo: parse error in /etc/sudoers near line 24 sudo: no valid sudoers sources found, quitting sudo: unable to initialize policy plugin
The reason is that it is wrong to use Vim to modify the file. For example, Google says you should use visudo to edit sudoers.
If something goes wrong, the following solution is executed:
pkexec visudo
Enter the file edit, for just modify the wrong place, directly modify, save exit, restore normal
Read More:
- The solution to the error of / etc / sudoers: syntax error in sudoer file under mac
- error:X11 initialization Failed solutions
- How to Fix ”is not in the sudoers file“ in Linux
- Failed to connect to Mir:Failed to connect to server socket:No such file or directory
- After editing a file with the VIM command in xshell, the ESC key cannot be output,,,
- Vs_ Code remote SFTP connects to the server to modify the nginx configuration information and reports all configured authentication methods failed
- Linux edit save file command
- mdt wds deployment windows Litetouch deployment failed, Return Code = -2147467259 0x80004005
- Raspberry pie set up to run Python program automatically
- ubuntu-how to solve the error-Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release
- [Transfer] mdt wds deployment windows Litetouch deployment failed, Return Code = -2147467259 0x80004005 solution…
- The computer can’t turn on ERROR: NO BOOT DISK HAS BEEN DETECTED OR THE DISK HAS FAILED
- Error: unable to process source
- Raspberry pie 4B uses adafruit_ Pca9685 report error ioerror: [errno 121] remote I / O error solution
- Failed to add /run/systemd/ask-password to directory watch: No space left on device?
- About jmh running error: transport error 202: Connect failed: connection reused error solution
- About JMH running ERROR: transport error 202: connect failed: Connection refused ERROR
- Error Ubuntu file permission not enough (RM)
- Installation and use of graphviz under mac