I have a VM running Ubuntu 18, on which I have both a normal user account and an admin account. Now I lost the password for the admin account and can’t update or install new software anymore. The VM is hosted in our facilities internal network. The VM can be accessed via ssh only, no GUI is installed. I know how to reboot a real machine or a VM in Virtual box in recovery mode to mount and reset Sudo password, but I have no idea how to do this for a remote VM. Anyone have an Idea? I would like to avoid having to set up a new Linux VM, it took forever to get all software for the analysis running together
1 Answer
You might just contact the hosting provider and ask them to reset the root password for you. That said, you should not need the root user's password (generally) with Ubuntu; you usually authenticate to sudo
with your normal user's password.
sudo
uses your own account password. Are you referring to the root password? Or do you have an entirely separate user account withsudo
privileges, which is different from the user account you normally use?