Superuser Access
As we’ll be installing software and configuring services, it’s a must to have superuser access to the host system. Try which one ever of the following options fits you the most, to verify root access:
-
I used
rootuser to login to this hostVerify being root user whoamiIf it returns
rootthen you have root access. -
My regular user has superuser privileges
Verify being superuser sudo -i# you will be prompted to enter your passwordIf it succeeds then you’ve superuser access.
-
I know the
rootpassword, but my regular user isn’t a superuserVerify having root credentials su# you will be prompted to enter root passwordIf it succeeds then you’ve root access. While it’s possible to run the setup as root, it’s generally not recommended.
Add normal user to superuser group # replace `<username>` with actual usernameadduser <username> sudo# this is for Debian/Ubuntu based systemsOnce you login with that user the next time, you can use
sudoto run commands with superuser privileges. Please verify it’s working before proceeding to the next steps.
Once you’ve verified having superuser access, press Ctrl+D to exit root shell to become regular (albeit sudoer) user or type exit in the terminal and press Enter to the same effect.