Fix of sudoers access right after mis-change

Source: Internet
Author: User

? sudo:/etc/sudoers is mode 0777, should be 0440"problem Solving method

Ubuntu Enter single-user mode, modify sudoers permissions, modifying Root Password

1, restartUbuntu, and then long pressShiftEnterGrubmenu;
2, selectRecovery Mode(Recovery mode), press"E"key into the edit page (note that this is not a carriage return, just presse)
3, thero Recovery NomodesetinsteadRW Single Init=/bin/bash
4, pressctrl+xEnter single-user mode, which is the current userRoot;
5, to/ etcchanges under directorysudoersPermissions:chmod 0440 sudoers, or can be added at the same timeRootpassword, next time will not be so troublesome;
6, pressCtrl+alt+delRestart ;
Reference:http://blog.csdn.net/gudaoqianfu/article/details/7254700

Fix of sudoers access right after mis-change

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.