1 | [root]# usermod -aG wheel UserName |
visudo
command actually opens /etc/sudoers
to edit.
Uncomment line of %wheel ALL=(ALL) ALL
will ask for password when sudo.
Uncomment line of %wheel ALL=(ALL) NOPASSWD: ALL
won’t ask for password when sudo.
1 | ## Allow root to run any commands anywhere |