I did set my password as I installed Ubuntu some months ago, and now I have forgotten my password.
I can log in at start, but I can’t install updates anymore, also unable to run sudo command.
I tried to reset password but failed. Kindly help me to reset Ubuntu password.
Hey @uietcse1822monikayad !
You can try the steps below to reset the lost password. My other friend also had the same issue and this worked!
- Reboot your computer
- Press Shift during boot to start the 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 password username
- Set your password
Hope this helps!
Which version of Ubuntu are you using? Please mention whether you’ve dual booted or using a virtual machine or using putty to access Digital ocean
Thank you @aksharakaul !
This really worked.
I’m using virtual machine. Thanks for asking but my issue has been solved now.