It is possible to use su to execute commands as root,
for example % su root -c 'pkg ins package'
then enter root password, or edit sudoers file and add your user, or give access to the wheel group:
execute % su root -c visudo, then uncomment
Code:
%wheel ALL=(ALL) ALL
Save changes and add your user to the wheel group:
execute % su root -c 'pw groupmod wheel -m [I]yourusername[/I]' and relogin.
Voila, now you're able to use sudo with your user :).
来源:https://forums.freebsd.org/threads/how-to-authorize-an-user-non-root.65377/
标签:wheel,14.0,sudo,su,user,FreeBSD,root From: https://www.cnblogs.com/profesor/p/17967671