Ubuntu force change passwd

I had a Foundation of Computer Science class this evening. And when I booted the computer, I found Ubuntu Linux was installed on it.

Due to hating to use windows, I chosen Ubuntu. However, I can only login as Guest user. As you know, there are many limitations if you are using Guest account.

So I rebooted and edited boot script which used to start system in recovery mode. And it's really simple.

First, find the line started with "linux /boot/ vmlinuz" and then jump to the end of this line, delete "recovery nomodeset" and add "quiet splash re init=/bin/bash". Finally, press Ctrl + x or F10 and you are root user.

Now, you can enter "passwd root" to set a new password for root user.

声明: 本文为0xBBC原创, 转载注明出处喵~

发表评论

电子邮件地址不会被公开。 必填项已用*标注