I am running VirtualBox on a Windows Machine, and installed Ubuntu Linux 22.04 LTS. During the install, I set up the initial user. However, there appears to be no way to make this user have admin (sudo) privileges. After the install, I can login as the user, but I can't do anything involving admin (meaning, I can't use sudo). If there is a root password, I don't know what it is. (I think by default there is no password for root.)
I tried doing the trick where you run in recovery mode to run as root...but even then it prompts me for a root password, so I can't do anything.
I did the entire install process a second time, thinking I missed something, but to no avail.
Any advice on how to determine what the root password is when you install using VirtualBox? Or how to create a user that ends up in sudoers?
sudo
for everything. It sounds like you have an unofficial Ubuntu build that does something unusual and therefore is not governed by the same rules of Ubuntu 22.04. Where did you get the Ubuntu 22.04 installer/ISO? – Thomas Ward Feb 06 '23 at 19:45