to view/edit:
/etc/sudoers
or
visudo
but really you should use:
/etc/sudoers.d/something
to give all access without password:
username ALL=(ALL) NOPASSWD:ALL
to give access to certain commands, without password:
username ALL=(ALL) NOPASSWD:/usr/sbin/service myservice start
to give access to certain commands, with wildcard:
username ALL=(ALL) NOPASSWD:/usr/sbin/service myservice *
#includedir /etc/sudoers.d
"It is possible to include other sudoers files from within the sudoers file currently being parsed using the #include and #includedir directives."
MUST have a newline at the end of file
Will mean you can't sudo to fix the problem, so:
- always include a new line in
/etc/sudoers.d/...
- before editing, open another terminal and leave it open as root user