Step 1: Add the User

adduser mynewuser

Set the password for the new user:

passwd mynewuser

Step 2: Grant Root Privileges to the User

visudo

Find the following code:

## Allow root to run any commands anywhere
root ALL=(ALL) ALL

mynewuser ALL=(ALL) ALL

Save the file with the command :wq .

Advertisements