Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
18.1 Legacy Series
»
18.1.6 Cannot su - OPNsense reverts changes to wheel group in /etc/group file
« previous
next »
Print
Pages: [
1
]
Author
Topic: 18.1.6 Cannot su - OPNsense reverts changes to wheel group in /etc/group file (Read 4118 times)
PacketOrchestrator
Newbie
Posts: 2
Karma: 1
18.1.6 Cannot su - OPNsense reverts changes to wheel group in /etc/group file
«
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.
Logged
theq86
Sr. Member
Posts: 272
Karma: 37
Re: 18.1.6 Cannot su - OPNsense reverts changes to wheel group in /etc/group file
«
Reply #1 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.
Logged
PacketOrchestrator
Newbie
Posts: 2
Karma: 1
Re: 18.1.6 Cannot su - OPNsense reverts changes to wheel group in /etc/group file
«
Reply #2 on:
May 11, 2018, 09:08:25 am »
Thanks nasq! Yes that works fine!
Cheers,
PacketOrchestrator
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
18.1 Legacy Series
»
18.1.6 Cannot su - OPNsense reverts changes to wheel group in /etc/group file