Disable recovery mode in Ubuntu12.04

Source: Internet
Author: User
RecoveryMode allows you to restore your system, change your password, and obtain root privileges in an emergency. However, anyone who has access to your computer can change your password to gain access to your computer. If this mode is disabled, you cannot access your computer in recovery mode in an emergency. You can disable RecoveryMode if necessary. Ubuntu12.04 method: Open the terminal and execute: sudovi/etc/def

Recovery Mode allows you to restore your system, change your password, and obtain root privileges in an emergency.

However, anyone who has access to your computer can change your password to gain access to your computer.

If this mode is disabled, you cannot access your computer in recovery mode in an emergency. You can disable the Recovery Mode if necessary.

The Ubuntu 12.04 method is as follows:

Open the terminal and execute: sudo vi/etc/default/grub (if you are not familiar with vi, you can change it to gedit)

Remove [# GRUB_DISABLE_RECOVERY = "true"] In Front Of The highlighted line (# represents the comment) (SEE), save and exit, and then execute the sudo update-grub2 (SEE), so that it is done.

There is no recovery mode in the Start menu at the next startup.

Ps: If the recovery mode is disabled, the system may be faulty, but what should I do if I want to modify some system files:

It's easy. Use a USB flash drive to create a boot disk, start it from the USB flash drive, and try it out. You can also have root permissions.

Of course, if there are no special requirements, it is best not to do so.

PS:

If you want to use it again after it is disabled, you can select the system to be started on the grub2 selection page and press e to enter the editing mode, in the Load Kernel line, that is, the line starting with linux, the last line is added with a single, for example, the last line is changed

Linux/boot/vmlinuz-2.6.32-43-generic root =/dev/mapper/linux-lucid ro quiet splash single

Press Ctrl + B to start, and the recovery mode is displayed.

If you want to use the memtest86 + mode

Go to the/etc/grub. d/directory and cancel the executable permissions of 20_memtest86 +.

Sudo chmod-x 20_memtest86 +

Related Article

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.