Be forewarned, I have extremely limited Linux experience and none of it recent.
I just installed VirtualBox 7 (on a Win11 machine) and then installed Ubuntu 22.04.2 using the directions found here:
On page 2 of the directions, it states to change the default username and password because the default supposedly creates an account without sudo rights. So I change both -- let's say to Fred and Fred123 (clearly these are bogus).
The install went very smoothly. But when I open a terminal window and try to sudo anything, it tells me, "Fred is not in the sudoers file. This incident will be reported."
So it would appear that changing them from the default still resulted in the creation of account without sudo rights.
Every place I look tells me to use sudo in order to add my account to the sudoers file. Duh. Hello!
They also say that the initial root account has no password. So one would think that maybe the trick is to log in as root and make the changes (and change root's password, although given what this machine will be used for, I don't really care).
But no dice. If I either try to use su or logout and login as root, I get an authentication failure.
So, any guidance on how to resolve this would be much appreciated. If I have to, I'm willing to reinstall Ubuntu, though all I have is the .iso file in a folder, I do not have a way to burn a DVD.
Many thanks for any help.
I just installed VirtualBox 7 (on a Win11 machine) and then installed Ubuntu 22.04.2 using the directions found here:
On page 2 of the directions, it states to change the default username and password because the default supposedly creates an account without sudo rights. So I change both -- let's say to Fred and Fred123 (clearly these are bogus).
The install went very smoothly. But when I open a terminal window and try to sudo anything, it tells me, "Fred is not in the sudoers file. This incident will be reported."
So it would appear that changing them from the default still resulted in the creation of account without sudo rights.
Every place I look tells me to use sudo in order to add my account to the sudoers file. Duh. Hello!
They also say that the initial root account has no password. So one would think that maybe the trick is to log in as root and make the changes (and change root's password, although given what this machine will be used for, I don't really care).
But no dice. If I either try to use su or logout and login as root, I get an authentication failure.
So, any guidance on how to resolve this would be much appreciated. If I have to, I'm willing to reinstall Ubuntu, though all I have is the .iso file in a folder, I do not have a way to burn a DVD.
Many thanks for any help.