Our new user will be called batman:
- groupadd admins
- adduser batman -G admins
- passwd batman
- visudo (this will open sudoers file in vim)
- Add this to the file:
%admins ALL=(ALL) ALL
Any users in the group called ‘admins’ will be sudoers. So additional users just need to be added to this group.