18.1.6 Cannot su - OPNsense reverts changes to wheel group in /etc/group file

Started by PacketOrchestrator, May 10, 2018, 01:42:11 PM

Previous topic - Next topic
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.

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.

Thanks nasq!  Yes that works fine!   :)

Cheers,
PacketOrchestrator