visudo is kjst a wrapper that uses $EDITOR to edit sudoers and does some syntax checks before overwriting the original. You can do it directly with an editor but visudo is safer. As for what to add, try one of
- Code: Select all
%wheel ALL=(ALL) ALL
username ALL=(ALL) ALL
The first line gives sudo access to all members of the wheel group, the conventional choice for sudo access, the second line does the same but for a single user.
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)