How to switch from non-root user to root in FreeBSD
Sep 13, 2022
When you install it for the first time FreeBSD you have to add explicitly the option to login as root from a non-root user. As in UNIX-like systems, there are a lot of ways to do that, so, it depends on your time and your patience.
My Way
Just add your user to the group wheel, which uses the PAM module to determine who can switch to UID=0.
Show users belonging to wheel:
Now, you can add your username to the group.
That’s all!