How To Create Root Account Ubuntu 18.04 Bionic Beaver

Step 1: Create a user

1.1 Run commands in root

1.2 Add user

Enter the user’s password twice

Press enter to fill the fields with default information

Enter Y then hit enter to continue

1.3 Add new user to sudo group

Step 2: Grant Root Privileges to the User

2.1 Edit /etc/sudoers

Find the following lines:

Add this line under “# User privilege specification”

Exit & Save

2.2 Reboot the server and log in with the new user

Step 3: Delete a user and home folder

3.1 Delete user and home folder