Method 1
By default the first user's account is an administrative account.
- Reboot your computer.
- Hold Shift during boot to start GRUB menu.
- Choose (recovery mode)
- Choose root from options
- You will be at
root@ubuntu:~#
- Put command
mount -rw -o remount /
OR
mount -o remount,rw /
7. Next reset the Password
root@ubuntu:~# passwd <first user name>
Enter new UNIX password:
Retype new UNIX password: passwd:
password updated successfully
Method 2
From the official Ubuntu LostPassword documentation:
- Reboot your computer.
- Hold Shift during boot to start GRUB menu.
- Highlight your image and press E to edit.
- Find the line starting with "linux" and append rw init=/bin/bash at the end of that line.
- Press Ctrl + X to boot.
- Type in passwd username.
- Set your password.
No comments:
Post a Comment