I want to add a user in the sudoers file and I don't want to touch the original /etc/sudoers file, so I added a new file under directory /etc/sudoers.d. The interesting thing is about the name of the newly added file. Initially, I named the file as sudoers.local, the file never got effective; then I renamed the file as customize, it got effective immediate.
So far I have found four different ways to add a user to the sudoers group and not all methods work in all systems.
Why so many different implementations?
What is the best?
What is the standard (i.e. work in most systems)?
Adding the user to the 'wheel' group.
Adding the user to the 'sudo' group.