Add Sudo User FreeBSD

Add a new wheel user, then allow wheel to run sudo as root:

root@colinbsd: # pkg install sudo

root@colinbsd: # sed s/’#%wheel ALL=(ALL) ALL’/’%wheel ALL=(ALL) ALL’/g /usr/local/etc/sudoers > sudoers_new

root@colinbsd: # cp /usr/local/etc/sudoers ./sudoers.BAK

root@colinbsd: # mv ./sudoers_new /usr/local/etc/sudoers

 

Or you can visudo and add a user under root… Or read https://www.michaelwlucas.com/tools/sudo (todo) and do it right

Leave a Reply

Your email address will not be published. Required fields are marked *