I've installed a Ubuntu 22.04 VM on my windows computer (using virtual box), and whenever I use the sudo command on the unique, default session, I get the error "user not in sudoers file". How can I fix this ? I have tried to run the recovery mode in root mode, but I'm asked a password (which I never defined nor was given). Isn't it weird that the default session doesn't have admin permissions ? I'm guessing this isn't usually the case, but it's been like this on every ubuntu vm I've created.
Any help will be greatly appreciated, thank you !
sudo
that is failing and the exact error? As for the password, you use your account password, not a different one. – matigo Nov 10 '22 at 12:35su -
but notsudo -i
, for instance. – user unknown Dec 16 '22 at 21:06