How To Give Su Rigth To User In FreeBSD? – POFTUT

How To Give Su Rigth To User In FreeBSD?

I have a FreeBSD box. I want to connect this system remotely with ssh. FreeBSD security settings are very restricted so we can not connect the FreeBSD system with root user remotely. We will ssh with a regular existing user and then login as root with su command. The problem is the regular existing user can not run su command. How can we give the ability to run su command to a regular user in FreeBSD?

su Error

When we try to run su command we will get following errors.

Add User To Wheel Group

We need to add the current user to the wheel group. Open /etc/group file with an editor you are comfortable. Here I used vi because I have no chose. And add user name after the root user name like below.

Escalate Privilege

Now we can easily su with our user ismail

Escalate Privilege

Escalate Privilege

LEARN MORE  How to Become SuperUser or Root with su Command In Linux?

Leave a Reply

Your email address will not be published. Required fields are marked *

Enjoy this blog? Please spread the word :)