How To Give Su Rigth To User In FreeBSD?

RSS
FACEBOOK
FACEBOOK
PINTEREST
PINTEREST
LINKEDIN
INSTAGRAM

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 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 regular existing user can not run su  command. How can we give ability to run su command to 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 current user to the wheel group. Open /etc/group file with 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

RSS
FACEBOOK
FACEBOOK
PINTEREST
PINTEREST
LINKEDIN
INSTAGRAM
LEARN MORE  Arping Command Tutorial With Examples For Linux