Rest forgotten password Linux mint

Recently I installed Linux Mint 18.1 Serena on my laptop, installation was a success but I was not able to log in with my password. Did some googling and found a way to reset the password.

Actually, I found this forum https://community.linuxmint.com/tutorial/view/1355

what I have done here is given a detailed explanation from this forum.

In this blog post, I have used Linux Mint 18.1 as the OS, but I think for other Linux distributions we will have to follow the same instructions.

To reproduce this I have installed Linux Mint 18.1 in a virtual box, so now I am trying to log in and I am purposely entering an incorrect password, so let’s see how we can reset the password.

Follow these steps

1. Restart your computer.

2. Hold down shift key to enable GRUB menu

3.Then press e to edit

4. Use the Arrow keys to navigate to a line that looks similar to this:

linux /boot/vmlinuz-[kernel version]-generic root=UUID=[letters and numbers][letters and numbers] ro quiet splash $vt_handoff

5.Change ro quiet splash $vt_handoff to rw init=/bin/bash finally it should be like this

linux /boot/vmlinuz-[kernel version]-generic root=UUID=[letters and numbers][letters and numbers] rw init=/bin/bash

6. Then press F10 to boot your system

7. Now you will prompt a passwordless root shell

8. Type passwd your_user_name

You can find your username by typing cat /etc/passwd it will display at the end

9. Now set your new password

10. Restart your computer.

That’s it :)

Again Tested on above OS only!

责编内容来自:RKDEVBLOG (源链) | 更多关于

阅读提示:酷辣虫无法对本内容的真实性提供任何保证,请自行验证并承担相关的风险与后果!
本站遵循[CC BY-NC-SA 4.0]。如您有版权、意见投诉等问题,请通过eMail联系我们处理。
酷辣虫 » 综合技术 » Rest forgotten password Linux mint

喜欢 (0)or分享给?

专业 x 专注 x 聚合 x 分享 CC BY-NC-SA 4.0

使用声明 | 英豪名录