FreeBSD: Install sudo Command, Allow wheel Group Users To Execute A Command As The Root [Without a Password]

1.Update the pkg tool

# pkg update

2.Install sudo

# pkg install sudo

3.Run 'visudo' command to configure sudo.

# visudo

4.Uncomment to Allow members of group wheel to execute any command.

# %wheel ALL=(ALL) ALL

5.Uncomment to Allow members of group wheel to execute any command without a password.

# %wheel ALL=(ALL) NOPASSWD: ALL

6.Save and close the file.

Comments