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
- Failed to connect to Mir:Failed to connect to server socket:No such file or directory
- Error Ubuntu file permission not enough (RM)
- Ubuntu “a user name is not in the sudoer folder. It will be reported. ” Solutions for
- Win 10 System Restore Fail 0x80070091
- npm ERR! Error: CERT_ Untrusted problem solving
- Some index files failed to download. They have been ignored, or old ones used instead
- tortoiseSVN cleanup failed
- After editing a file with the VIM command in xshell, the ESC key cannot be output,,,
- About maven Pom.xml Personal solutions to reporting errors!!!
- Python calls DLL and reports an error windowserror: [error 126]
- Failed to create VirtualBox client com
- MongoDB报错:Failed to start mongod.service: Unit mongod.service is not loaded properly
- [problem solving] Error:failed to get canonical path of /cow
- About node error NPM update check failed try running with sudo or get access to the local update
- Ubuntu (16.04) creates a Windows boot U disk, using woeusb instead of DD
- Failed to enable APR appears when the cmder of ubutun system in win subsystem installs Apache_ TCP_ DEFER_ ACCEPT
- Wireless network solution of deepin Linux network card driver (manual) installation
- Solution of vs unable to open source file and link library file