How Ubuntu turns off Grub Interactive editing

Source: Internet
Author: User
Keywords Off Password kernel down MD5.
Tags kernel password root turn turn off

How does Ubuntu turn off Grub Interactive editing?

Grub

Grub> Md5crypt

Password: Hu Jintao (Ubuntu)

Encrypted: $1$zwnke0$1fzdbvjuct1mpdd4u/t961 (Encrypted password)

Grub> quit

sudo cp/boot/grub/menu.lst/boot/grub/menu.lst_backup

sudo gedit/boot/grub/menu.lst

Search this passage

...

# If used in the ' A ' menu file, disable all interactive editing

# Control (menu entry editor and command-line) and entries protected by the

# command ' Lock '

# For example Password Topsecret

# password--md5 $1$glhu0/$aW 78khk1qfv3p2b2znuoe/

# password Topsecret

...

Add the following line below

Password--md5 $1$zwnke0$1fzdbvjuct1mpdd4u/t961 (this is a coded password)

Search this passage

...

Title http://www.aliyun.com/zixun/aggregation/13835.html ">ubuntu, kernel 2.6.10-5-386 (recovery mode)

Root (hd0,1)

kernel/boot/vmlinuz-2.6.10-5-386 root=/dev/hda2 RO Single

Initrd/boot/initrd.img-2.6.10-5-386

Savedefault

Boot

...

Replace it with the following lines

#title Ubuntu, kernel 2.6.10-5-386 (recovery mode)

#root (hd0,1)

#kernel/boot/vmlinuz-2.6.10-5-386 root=/dev/hda2 Ro single

#initrd/boot/initrd.img-2.6.10-5-386

#savedefault

#boot

Save the edited file.

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.