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

    [Solved] Duplicated admins group...?

    Scheduled Pinned Locked Moved General pfSense Questions
    18 Posts 3 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.
    • stephenw10S
      stephenw10 Netgate Administrator
      last edited by

      Probably not. If you edited the config originally that was probably the cause here. if you only edited the user section then I doubt anything else is affected. If it was a random bad edit it would probably result in bad xml and pfSense will alert you to that.

      F 1 Reply Last reply Reply Quote 0
      • F
        furom @stephenw10
        last edited by furom

        @stephenw10 said in Duplicated admins group...?:

        Probably not. If you edited the config originally that was probably the cause here. if you only edited the user section then I doubt anything else is affected. If it was a random bad edit it would probably result in bad xml and pfSense will alert you to that.

        Well, I didn't edit the config directly when it happened. I merely used the GUI normally to configure the package and set it up. That is why I am a bit questioning...

        1 Reply Last reply Reply Quote 0
        • stephenw10S
          stephenw10 Netgate Administrator
          last edited by

          Mmm, that would certainly be a bug if it is. It shouldn't be possible to either create two groups with the same name or the same number. The gui has numerous things to prevent it.
          If you're able to replicate that we'd certainly want to know what steps hit it.

          Steve

          F 1 Reply Last reply Reply Quote 1
          • F
            furom @stephenw10
            last edited by

            @stephenw10 said in Duplicated admins group...?:

            Mmm, that would certainly be a bug if it is. It shouldn't be possible to either create two groups with the same name or the same number. The gui has numerous things to prevent it.
            If you're able to replicate that we'd certainly want to know what steps hit it.

            Steve

            Thanks, By all means, I hope it will not happen again, but if it does, and I'm lucky enough to be able to trace the steps to reproduce, I'll surely let you know :)

            Any chance this can be related to me not being able to use diagnostics to verify a user?

            1 Reply Last reply Reply Quote 0
            • stephenw10S
              stephenw10 Netgate Administrator
              last edited by

              If that user was part of the admins group it could cause a problem trying to assign the permissions there. It seems unlikely though.

              F 1 Reply Last reply Reply Quote 0
              • F
                furom @stephenw10
                last edited by

                @stephenw10 said in Duplicated admins group...?:

                If that user was part of the admins group it could cause a problem trying to assign the permissions there. It seems unlikely though.

                No it wasn't. I was more thinking if something on my system caused it to not accept authentication. I suppose it is another Gremlin to be found, but sure don't get why it will not work, but I'll have to make do until someone (hopefully) sees that post :) Marking this one solved, thanks for the assist! :)

                1 Reply Last reply Reply Quote 1
                • jimpJ
                  jimp Rebel Alliance Developer Netgate
                  last edited by

                  https://redmine.pfsense.org/issues/14363

                  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!

                  F 1 Reply Last reply Reply Quote 2
                  • F
                    furom @jimp
                    last edited by

                    @jimp said in [Solved] Duplicated admins group...?:

                    https://redmine.pfsense.org/issues/14363

                    Thanks! Reading that bug report reminded me... That's exactly what I did. :)

                    F 1 Reply Last reply Reply Quote 1
                    • F
                      furom @furom
                      last edited by furom

                      @furom I ran right back into it unfortunately (now having dual groups again), but also something I didn't have the first time;d64db6d5-c1c6-4897-a3cc-3098b212aa15-image.png

                      And WHAT? I could undo the dual group! Or that is what the GUI showed, until editing the user again;ad3081f7-e0a3-420c-b79b-fb30c2a8f3f6-image.png and checking the groups;
                      0d4b96b6-022f-4197-8fce-f5a113370eef-image.png

                      Looking forward to a fix to this madness...

                      1 Reply Last reply Reply Quote 0
                      • jimpJ
                        jimp Rebel Alliance Developer Netgate
                        last edited by

                        What do you mean "ran right back into it"?

                        The patch doesn't put back the "all" group or remove the duplicate "admins" group, you'd have to put it back in config.xml manually, there's no way to get back to the fixed group in the GUI unless you restore an old config with the correct group.

                        If you do edit the config.xml you can copy the 'all' group from the default config:
                        https://github.com/pfsense/pfsense/blob/master/src/conf.default/config.xml#L11 though it wouldn't reflect the correct membership unless you add <member></member> lines with all your existing user ID numbers.

                        You could also download an old backup that had the correct users and "all" group and copy that section over to the newer config and restore that, which would be closer.

                        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!

                        F 1 Reply Last reply Reply Quote 0
                        • F
                          furom @jimp
                          last edited by

                          @jimp said in [Solved] Duplicated admins group...?:

                          What do you mean "ran right back into it"?

                          Exactly that. I had reinstalled and then did the same mistake again... :(

                          The patch doesn't put back the "all" group or remove the duplicate "admins" group, you'd have to put it back in config.xml manually, there's no way to get back to the fixed group in the GUI unless you restore an old config with the correct group.

                          I am not aware of any patch for this, thus far I have edited the backup only

                          If you do edit the config.xml you can copy the 'all' group from the default config:
                          https://github.com/pfsense/pfsense/blob/master/src/conf.default/config.xml#L11 though it wouldn't reflect the correct membership unless you add <member></member> lines with all your existing user ID numbers.

                          I was confused this time though, for the first time ever I saw this "all" group that is being talked about, perhaps a good thing then :)

                          You could also download an old backup that had the correct users and "all" group and copy that section over to the newer config and restore that, which would be closer.

                          I have now reinstalled with 23.01 and from a printout entered all my settings... Tedious, no doubt, but also a way to sanity test my settings. DNS is always driving me nuts, took me too long to get everything aligned.

                          I have yet to succeed with adding my ed25519 ssh key to my user config... Perhaps for tomorrow, a bit tired of all this now really, why isn't there a button on it - "just work damn it" ;) Kidding of course, I love pfSense, but it gets to me sometimes.

                          1 Reply Last reply Reply Quote 0
                          • jimpJ
                            jimp Rebel Alliance Developer Netgate
                            last edited by

                            There is a commit on https://redmine.pfsense.org/issues/14363 which corrects the behavior.

                            You can install the System Patches package and then create an entry for a2a2e8a8bee55d5b0c393d2c2d311a2fc8903bce to apply the fix.

                            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!

                            F 1 Reply Last reply Reply Quote 1
                            • F
                              furom @jimp
                              last edited by

                              @jimp said in [Solved] Duplicated admins group...?:

                              There is a commit on https://redmine.pfsense.org/issues/14363 which corrects the behavior.

                              You can install the System Patches package and then create an entry for a2a2e8a8bee55d5b0c393d2c2d311a2fc8903bce to apply the fix.

                              I have that, I'll check the patch out, thanks :)

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post
                              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.