How to Enable su Access in FreeBSD


How can a “normal” user get root rights, or actually switch to root account using the su command when working under FreeBSD?

To do that, that “normal” user needs to be in wheel group. So this command will enable a given user to be able to switch to root account with the command su – root or just su –

pw groupmod wheel -m [user]


pw groupmod wheel -m hanief

Now that user hanief will be able to become root. This is a good security feature that FreeBSD has.



This entry was posted in freeBSD, Linux, UNIX and tagged , , , . Bookmark the permalink.