In recent days, I tried to configure sudo for passwordless operation, which smashed the sudoers file and reported the following error
/etc/sudoers: syntax error near line 59 <<<
sudo: parse error in /etc/sudoers near line 59
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin
Search the Internet and jot down solutions
pkexec visudo
pkexec function is to execute the command as root, it doesn't seem to work on MAC, but ~ ~, I will update the solution later
MAC solution:
open /etc directory with folder, right-click -> Show introduction
Undid the bottom right?”, and then change the everyone permission to read and write to be able to modify the sudoers file freely
Read More:
- Sudo: parse error in / etc / sudoers near line 24
- How to Fix ”is not in the sudoers file“ in Linux
- Ubuntu “a user name is not in the sudoer folder. It will be reported. ” Solutions for
- Solutions to the problem of using sudo caused by Ubuntu’s wrong modification of sudoers
- File contains no section headers. File: File: / / etc/ yum.repos .d/
- Solution to error opening trace file: no such file or directory (2) in Android
- Solution to syntaxerror: invalid syntax in PIP install XXX
- N: Ignoring file ’50unattended-upgrades.ucf-dist’ in directory ‘/etc/apt/apt.conf.d/’ as it has an i
- Adding prefixes to file names in batch by shell under mac
- Error = 2, no such file or director is prompted in the lower left corner of the MAC pycharm running file
- Ubuntu 20.04 builds nginx 1.18.0 and MAC file transfer / download to server
- Error in header file when calling OpenGL to open obj file in vs2013: unable to open include file: “GL / glut. H”: no such file or directories
- Solution of vs unable to open source file and link library file
- No code, a solution to the error in the path of reading CSV file by Python: filenotfounderror: [errno 2] no such file or directory: ‘XX. CSV‘
- The solution of GDB code designed problem in Mac OS X
- Vs2015 cannot open the file string. H, etc
- Solution to the exception of PEM file logging in EC2
- [development experience] solution to unexpected syntax error: unexpected identifier in JSON parsing
- Bash modifies the file names in the specified folder through MAC terminal (batch modification)
- Mac: how to show hidden files under Apple Mac operating system