Question: how to change forgotten root password in ubuntu?
Answer: Step 1: Boot into recovery mode. Switch the computer on. ...  Step 2: Drop to root shell prompt. Now you'll be presented with different options for recovery mode. ...  Step 3: Remount the root with write access. ...  Step 4: Reset username or password.