How do I switch back to root user in Ubuntu 16.04?

I have my SSH keys set up for logging into my droplet as root. I have a small Minecraft server under a separate user.

  • Login as root
  • SU to “minecraft” to make any changes to my server, or view settings.
  • When I try to SU back to root to either reboot or make any other changes, it prompts a password. Which I don’t have for root since I’m using SSH keys.

Would granting “minecraft” SU privileges be the appropriate method? I was under the impression that it would be a security issue to do so.



Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.