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:
- Solutions to the problem of using sudo caused by Ubuntu’s wrong modification of sudoers
- The solution to the error of / etc / sudoers: syntax error in sudoer file under mac
- How to Fix ”is not in the sudoers file“ in Linux
- Let’s get started with latex 05, line feed, paragraph feed, page feed, first line indent, etc
- Three ways of single line and multi line comment in Python
- In machine learning, the prediction errors in sklearn, such as mean square error, etc
- Ultimate solution to error reporting of sudo rosdep init of ROS
- Sudo: unable to resolve host solution
- No password configuration of general account using sudo
- N: Ignoring file ’50unattended-upgrades.ucf-dist’ in directory ‘/etc/apt/apt.conf.d/’ as it has an i
- Java 8 Stream – Read a file line by line
- The language of C__ FILE__ 、__ LINE__ And line
- Error: sudo required (or change ownership, or define N_PREFIX)
- About node error NPM update check failed try running with sudo or get access to the local update
- Boot / etc/ rc.local What about invalidity? resolvent
- Maven of springboot project pom.xml Unknown error in the first line of the file
- server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
- Command line is too long. Shorten command line for QuestionnaireApplication or also for Spring Boot
- Error running ‘application’: command line is too long. Short command line for application