How to...

Setup an admin group and add user(s)

In order to have invidual logins, we have decided to create an admin group with sudo privileges and create users for each of us and put them into the admin group.

Create a group and grant sudo

sudo addgroup admin
sudo visudo

Add the following %admin line

# Allow members of group sudo to execute any command
%sudo   ALL=(ALL:ALL) ALL

This allows “admin”-users to run sudo commands without providing a password. Please remember:

With great power comes great responsibility

Create the “farmer” user

Note, you will have to set a password during this action

sudo adduser --ingroup admin <the-user-name>

We’ve decided to create a user called “farmer” that will be created on any node. So we did:

sudo adduser --ingroup admin farmer
setup master slave Difficulty: easy