What is the difference between adding a user to
usermod -a -G sudo?
Which method should be used for granting sudo?
If you can avoid it, never grant sudo privileges to individual users. Always grant privilegs to a group and then add users to that group.
For ubuntu-based servers, instead of adding lines to
NOTE: never edit
I just found this little tidbit out there... seems you need to be particularly careful with using the
Here's the info about the
You don't tell us how big your environment is, but if it's more than one machine you may also want to consider configuring
LDAP configuration is a well-tested way of making sure that multiple machines have the same
Everything folks have already said in the other answers about creating authorized groups still stands - it's easier as you scale up to grant privileges to a group and manage group membership than it is to deal with managing rights for individual users.