I have just installed Ubuntu 22.04 in my VirtualBox and created only one account, say "A". Although A is the only user in the system, it is not in the sudoers file because when I run "sudo passwd root", it shows that A is not in the sudoers file. However, to add A into the sudoers file, I must be a root user, which turns me back to the initial question: sudo passwd root.
Does anyone know how to solve this loop? Thanks a lot!
Experience: do not use the unattended installation provided by VirtualBox. It adds a vboxsf user, which is the cause of this problem.
root
? This is unnecessary in most modern Linux distributions ... 🤔