The virtual machine installed an Ubuntu, forgot the password? Get root user?

Source: Internet
Author: User

1, you can select a second repair in the Grub interface, but no grub can refer to: 1 restart Ubuntu, then the long press SHIRFT into the Grub menu, 2 Select recovery mode, press "E" key to enter the edit page; 3 Replace the RO single with RW Singleinit=/bin/bash (ubuntu10.10 not to change) 4) press ctrl+x into Single-user mode, the current user is root; (normal user login also line) 5) to/etc directory to modify sudoers permissions: chmod 0440 sudoers, fix; You can also add the root password, the next time not so troublesome; 6 press Ctrl+alt+del restart; 2, Ubuntu root password is not empty Ah, nor you can set it, but the system randomly generated, You set up the password for your own account when you install it. 1 terminal input Su root, prompt you root password, of course you do not. Don't forget the power of sudo, using the second method. 2 The terminal input sudo su root, which means that the system I want to get root permission with temporary root privileges, of course, the system will not reject you. Just type in your password. 3 simpler commands in fact, but not a bit of meaning, input su-i

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.