How To Add a User and Grant Root Privileges on Ubuntu 18.04

Reading Time: 2 minutes

Adding a user and granting that user root privileges is one of the many tasks of a system admin.   Once a user has been added and granted root privileges they’ll be able to login to your Ubuntu 18.04 and perform vital functions for the upkeep of the system. Afterward, they’ll be able to use sudo before commands to perform elevated tasks.  In this quick tutorial, we’ll show you how to add a new user and grant root permissions.

Pre flight

  • These instructions are intended specifically for adding a user on Ubuntu 18.04 LTS.
  • We’ll be working from a Liquid Web Core Managed Ubuntu 18.04 LTS server, and I’ll be logged in as root.

Step 1: Add the Username

In my example, I’ll be adding my cat’s name, Tom, using the adduser command. Replace tom with your desired username. During this time, the system will also ask of me details from my user.  Feel free to skip these details by pressing enter and eventually it asks us to confirm that the info is correct, leading us to a new user added.

adduser tom

Example Output:
Adding user `tom' ...
Adding new group `tom' (1001) ...
Adding new user `tom' (1001) with group `tom' ...
Creating home directory `/home/tom' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for tom
Enter the new value, or press ENTER for the default
Full Name []: Tom
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n] Y

Step 2: Grant Root Privileges to the User

visudo

The command below leads us to the /etc/sudoers.tmp file where we can view the following code:# User privilege specification
root    ALL=(ALL:ALL) ALL

After the root user line, you’ll add in your new user with the same format for us to grant admin privledges.

tom ALL=(ALL:ALL)ALL

Once you’ve added the permission, save and exit the file by using :wq and enter.

Step 3: Verify User Has Privledges

If you’ve followed the instructions correctly then this user will be able to run commands like, update, using the sudo:

su - tom

sudo apt-get update

Want to do admin tasks through a control panel? Check out our servers that come with cPanel servers.  We offer free migrations and 24/7 support making it effortless to switch to Liquid Web!

Committing and Pushing to Github from Ubuntu 18.04

Reading Time: 2 minutes

In our previous tutorial, we showed you how to create and sync a Github repository to your Ubuntu 18.04 server.  Using the last tutorial as a springboard, we’ll continue on and show you how to commit and push a script from your Ubuntu server to your Github account. Continue reading “Committing and Pushing to Github from Ubuntu 18.04”

Create and Clone a Repo in Github on Ubuntu 18.04

Reading Time: 2 minutes

Github is a free repository hosting service, used as version control for web developers to download and push their code from their servers to other users.  In our previous article we’ve instructed on how to add Git to your Ubuntu 18.04 server. We’ll continue on and show you how to add and clone a repo from Github to your server. Continue reading “Create and Clone a Repo in Github on Ubuntu 18.04”

Install and Configure Git on Ubuntu 18.04

Reading Time: 1 minute

What is the purpose of Git?

Git gives you a way to not only track changes in source code, but it can also be used to track changes in files.  It then stores the data in what is called a repository, also known as a repo. Continue reading “Install and Configure Git on Ubuntu 18.04”

Install Oracle Java 8 on Ubuntu 18.04

Reading Time: 2 minutes

Java is a programming language used to build Android apps and real life web applications like Gmail and Google Docs. This ubiquitous language can be installed onto an Ubuntu server and its what we’ll be teaching in this tutorial today. Continue reading “Install Oracle Java 8 on Ubuntu 18.04”

Install Java 8 on CentOS 7

Reading Time: 2 minutes

In this tutorial, we’ll be showing you how to install Oracle’s Java 8 programming language specifically onto a CentOS 7 server. This simple object-oriented language is used for many of the applications and websites you come across today.  Let’s jump right in! Continue reading “Install Java 8 on CentOS 7”

Creating a Bucket using DragonDisk for Object Storage

Reading Time: 1 minute

DragonDisk is a client for S3 compatible storage, meaning that you can connect this client to many storage services including our very own Liquid Web Object Storage solution. The scope of our article will focus on how to install and create a bucket specifically connected to our Cloud Object Storage. Continue reading “Creating a Bucket using DragonDisk for Object Storage”

How To Remove PostgreSQL

Reading Time: 1 minute

Let’s say you were trying to download PostgreSQL and you realize that not all of the program downloaded, leaving you with files and directories that are taking up space on your server, and begs the question: How do you completely uninstall PostgreSQL?  In this tutorial, we’ll be safely removing PostgreSQL from our Liquid Web Ubuntu 16.04 server.

Continue reading “How To Remove PostgreSQL”