Report this

What is the reason for this report?

Sudo Privileges - 2 different ways?

Posted on April 23, 2015

In this tutorial it says to use below to give a new user sudo privileges:

gpasswd -a "newuser" sudo

https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-14-04

In this tutorial it says to use add newuser ALL=(ALL:ALL) ALL using:

visudo

https://www.digitalocean.com/community/tutorials/how-to-add-and-delete-users-on-an-ubuntu-14-04-vps

Should I use both techniques?

Thanks!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.