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]