# 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.

<figure><img src="https://4081356430-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfpkGw9BiJgzxmKhSpJNH%2Fuploads%2FqQuOwgnXg9AErsFqePNn%2FVisudo.png?alt=media&#x26;token=ee4cdf72-4828-46f8-b0ae-dfcc168a6a5d" alt=""><figcaption></figcaption></figure>
