Always use
visudo to edit the sudoers file — it validates the syntax before saving, which prevents locking yourself out.# User privilege specification
root ALL=(ALL:ALL) ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
@includedir /etc/sudoers.d
kc ALL=(ALL:ALL) NOPASSWD:ALL