Sudoers File change error, root permission cannot be used solution
Source: Internet
Author: User
Sudoers File change error, root permission cannot be used solution/etc/sudoers: Unknown: parseerrorin/etc/sudoersnearline25sudo: novalidsudoerssourcesfound, quitting ultimate... sudoers File change error, root permission cannot be used solution/etc/sudoers: syntax error near line sudo: parse error in/etc/sudoers near line 25 sudo: no valid sudoers sources found, quitting ultimate solution: www.2cto.com 1. shift to recovery mode 2. select root account 3. chmod 666/dev/null mount-o remount Rw/4. nano/etc/sudoers restore the content of this file and save it to the disk. #/Etc/sudoers # This file MUST be edited with the 'Usually do 'command as root. # See the man page for details on how to write a sudoers file. # Defaults env_reset # Host alias specification # User alias specification # Cmnd alias specification # User privilege specification root ALL = (ALL) ALL # Allow members of group sudo to execute any command after they have # provided their password # (Note that later entries override this, so you might need to move # it further down) % sudo ALL = (ALL) ALL # includedir/etc/sudoers. d # Members of the admin group may gain root privileges % admin ALL = (ALL) ALL
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service