OPNsense Forum

Archive => 18.1 Legacy Series => Topic started by: PacketOrchestrator on May 10, 2018, 01:42:11 pm

Title: 18.1.6 Cannot su - OPNsense reverts changes to wheel group in /etc/group file
Post by: PacketOrchestrator on May 10, 2018, 01:42:11 pm
Hi All.  I am new to OPNsense.  Currently evaluating it for my requirements.  So far very happy with what I have seen.  Kudos to all those from the ground up who are involved in this project!

I am going through basic security tuning of my OPNsense 18.1.6 install.  I have added a user with basic rights through the WebGUI.  I have now used the console via root to add the user to the wheel group in /etc/group.
I have attempted this by direct editing the file and by using the "pw usermod" command.

I am able to SSH in using this basic user without issue.  I was able to su to root once successfully, however no more.  OPNsense / FreeBSD overwrites the /etc/group file every time I change it!

How does anyone else su to root with this behaviour?
Is there a fix for this?

Cheers,
PacketOrchestrator.
Title: Re: 18.1.6 Cannot su - OPNsense reverts changes to wheel group in /etc/group file
Post by: theq86 on May 10, 2018, 03:39:53 pm
It's not a bug, it's a feature!

If you want your OPNsense user to be able to gain root access, assign it the admin group via interface.
This way the user will also be added to the unix group wheel.
Title: Re: 18.1.6 Cannot su - OPNsense reverts changes to wheel group in /etc/group file
Post by: PacketOrchestrator on May 11, 2018, 09:08:25 am
Thanks nasq!  Yes that works fine!   :)

Cheers,
PacketOrchestrator