Ubuntu Server – Add a new User as Sudoer

In SHELL

sudo useradd -d /home/testuser -m testuser
sudo passwd testuser


replace testuser with the required username.

sudo nano /etc/sudoers


add the user after the:

root ALL=(ALL) ALL


as:

testuser ALL=(ALL) ALL

Save the file.

Don’t forget to say THANX!!!

This entry was posted in Linux, Ubuntu Server and tagged , , , , , . Bookmark the permalink.

Leave a Reply