Ubuntu 14.04 Root Password forgotten solution [reprint +17.04 Pro test available]

Source: Internet
Author: User

The root password in Ubuntu 14.04 forgot how to solve

The root password in Ubuntu 14.04 forgot how to solve

Method One :

If the user has sudo permissions, you can run the following command directly:

#sudo su Root

#passwd

#更改密码

Alternatively, you can directly change the root password by running the sudo passwd root command directly.

Differences about sudo su:

1. Common denominator: Both are the root user's privileges;

2. Different points: Su only get root permissions, the work environment is not changed, or the user's working environment before switching; Sudo is fully rooted and rooted in the working environment.

[Email protected]:~$ sudo su root
[sudo] password for www.linuxidc.com:
[Email protected]:/home/www.linuxidc.com# passwd
Enter a new UNIX password:
Re-enter the new UNIX password:
passwd: Password has been successfully updated
[Email protected]:/home/www.linuxidc.com#

Method Two :

If the user does not have sudo permissions, then method one is not available and needs to go into grub to modify the kernel mirroring boot parameters. The Ubuntu version used in this article is 14.04.4, the process is as follows:

1. Restart the computer long press the SHIFT key until enter into the Grub boot mode, select the second line of Ubuntu advanced options, select Direct Enter, such as:

2, enter the following screen, see there are some options, then do not press ENTER, press e into (recovery mode) compile kernel to start parameters

3, the key time to, the fourth line, you will see a line linux/boot/vmlnuz-4.2.0-27-generic ... ro recovery nomodeset,

Delete Recovery nomodeset

3. Then add the quiet splash RW Init=/bin/bash After you have just removed it. Then press F10 to start.

4 If all the fight, after the system directly into the root mode, enter: passwd, the system will prompt you to enter a new password, the end.

Original URL: http://www.linuxidc.com/Linux/2016-05/131256.htm

If you are offended, please contact me to delete

Ubuntu 14.04 Root Password forgotten solution [reprint +17.04 Pro test available]

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.