• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

How to permanently add a user to a system group

Scheduled Pinned Locked Moved General pfSense Questions
2 Posts 2 Posters 1.9k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O
    opoplawski
    last edited by Dec 5, 2016, 4:56 PM

    I've created a fail2ban user to allow modifications to the firewall rules.  I need to add the user to the "proxy" group so that it can run pfctl, but that modification to /etc/group gets lost on reboot.  How can I make this change permanent?

    1 Reply Last reply Reply Quote 0
    • J
      jimp Rebel Alliance Developer Netgate
      last edited by Dec 8, 2016, 4:05 PM

      At the moment there isn't a way to add a user to a reserved system group in a way that will be preserved.

      You could script a groupmod command into a shellcmd so it would happen at bootup

      /usr/sbin/pw groupmod proxy -m <username>That might get you closer, though it could still be clobbered if the groups get rewritten later</username>

      Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

      Need help fast? Netgate Global Support!

      Do not Chat/PM for help!

      1 Reply Last reply Reply Quote 0
      2 out of 2
      • First post
        2/2
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
        This community forum collects and processes your personal information.
        consent.not_received