By default, root can only login from a local terminal or console. That is, in a regular install of FreeBSD, an unprivileged user cannot elevate their privileges to super user status through the su command unless you specifically granted them that ability by adding that user to the wheel group.

To see a list of groups a current user a is a member of, use the groups command:

[root@mediaserver3 ~]# groups mediaserver

To add a user called mediaserver to the wheel group, use the pw command:

[root@mediaserver3 ~]# pw user mod mediaserver -G wheel

To see the addition, execute the groups command once more:

[root@mediaserver3 ~]# groups mediaserver

Comments are closed.