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

      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
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        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
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.