Add User to Sudoers

Add user to sudo group via usermod

$ su root

$ usermod -aG wheel username

Add user to sudo group via visudo

$ su root

$ visudo

and then insert following after the %wheel line.

username ALL=(ALL) NOPASSWD:ALL

do not forget to change the username to the user of yours.

Last updated