notes on sudoers
but really you should use:
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 *
some gotchas/caveats/generally wierd shit
The following is not a comment (!):
"It is possible to include other sudoers files from within the sudoers file currently being parsed using the #include and #includedir directives."
Included sudoers files ...
MUST have a newline at the end of file
Syntax errors ...
Will mean you can't sudo to fix the problem, so:
- always include a new line in
- before editing, open another terminal and leave it open as root user