I have just started a new fedora build. I just got things going, and was about to install tmux, and was hit with the message...
Error: This command has to be run under the root user
Ok. I attempt to run
sudo dnf install tmux
And now I get hit with the error
<my username> is not in the sudoers file. This incident will be reported.
I look up how to change the sudoers file, using a command called visudo. However, it appears that this command too also requires access to sudo.
visudo
visudo: /etc/sudoers: Permission denied
And with sudo
sudo visudo
<password prompt>
<my username> is not in the sudoers file. This incident will be reported
So it seems like I need to change the sudoers file to be able to use sudo, but I cannot change the sudoers file without sudo. What do I do??