How to add sudoers
Since we should not run as root
we need sudo
and to add our user to the sudoers
group. This is how you do it.
The prerequisite is that you have sudo
installed and you are logged in as root
.
$ usermod -aG sudo username
Example:
usermod -aG sudo pfalken
To verify issue the command: groups username
and you should see sudo
in the list.
groups pfalken
pfalken, sudo