I installed ubuntu without a password, However, I am asked for a password for upgrading, and restarting ubuntu. Is there a way to get around this? I have tried the various ways to discover what the password is - including using my old password and other forum tips - no luck.
Asked
Active
Viewed 55 times
1 Answers
0
Same old method
Switch the computer on. Go to Grub menu. it appears automatically, if not then hold down the shift key until the boot menu appears.
In the grub menu, select the “Advanced Options for Ubuntu” and press "Enter".
Navigate to the option ......(recovery mode) and press "Enter". Wait for few seconds till presented with different options.
Choose “Root Drop into root shell prompt“ press enter key.
Option to enter commands appear in the bottom.
To remount file system with write access. Command:
mount -rw -o remount /then to choose the “username” Command:
ls /homeReset the password.
passwd usernameWhen prompted twice. Type new password
Enter new UNIX password: Retype new UNIX password:and type
exitBack to the recovery mode menu select "resume resumenormal boot" and press "Enter".
log in with the new password.
Vijay
- 8,556