How to Enable su root For a Normal User in FreeBSD

By default, on FreeBSD Systems, switching to root (su root) is disabled.

Watch Free Movies

In this article I will show you how to allow a normal user to su root.

If you try, you get this error:

$ su -
su: Sorry for normal user account.

To give a normal user su root priviledge, you have to add him to the wheel group (which is root’s group):

# pw usermod your_user -G wheel

To test if this works:

# groups your_user
your_user wheel

This is it.

If you want to enable all the normal user to switch to root, comment (add # in front of the line) this line in /etc/pam.d/su:

auth requisite pam_group.so no_warn group=wheel root_only fail_safe ruser

This is how the line should look like after being commented:

#auth requisite pam_group.so no_warn group=wheel root_only fail_safe ruser

Scroll to Top