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.
sudo addgroup admin
sudo visudo
Add the following %admin
line
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
%admin ALL=(ALL) NOPASSWD: ALL
This allows “admin”-users to run sudo commands without providing a password. Please remember:
With great power comes great responsibility
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