Minecraft 1.18 + Java 1.17

It seems I don’t have permission for Sudo or Su. How do I get that access? Is there a different login available?
Thanks!

First, I believe you’d need to install sudo as root
Then you need to type usermod -aG sudo username and replace username with your account.

su you’d just enter the root’s password.

worked fine (once I corrected all my typos)
Thanks!