[FreeBSD]如何在FreeBSD 14.0上使用sudo命令
首先安装sudo
pkg install sudo
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/
Install FreeBSD With XFCE Desktop - Full Guide From Scratch (2023)
https://www.youtube.com/watch?v=1VpVvsVbT-g