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

    SOLVED: 2.2.1 Upgrade breaks sudo

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    41 Posts 5 Posters 11.4k 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.
    • jimpJ
      jimp Rebel Alliance Developer Netgate
      last edited by

      Not sure, wasn't me so I couldn't say for certain.

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

        After looking things over, it really shouldn't have been working on 2.2-REL and was only doing so by accident apparently.

        The sudo PBI wrapper should be gathering its own libraries, but for some reason it is not.

        If you nudge it with ldconfig it should work (until reboot):

        ldconfig -m /usr/pbi/sudo-`uname -m`/local/lib/
        

        I can add that command to the package sync for sudo as an interim fix, other affected packages would need a similar fix. We're looking into a better long-term solution.

        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
        • V
          vajonam Rebel Alliance
          last edited by

          yup that is the command I was looking for an suspected the ld cache was not upto date! Thanks that works.

          will this survive a reboot in nanobsd? or does this need to happen on every reboot? no sure where the ld cache is stored. never mind re-read your post.

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

            Answered that in my previous post already. It will not stay across reboots, not until it gets added to the package.

            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
            • V
              vajonam Rebel Alliance
              last edited by

              I can add it by hand for now, which file does it go in? sudo.inc?

              1 Reply Last reply Reply Quote 0
              • D
                doktornotor Banned
                last edited by

                Are you planning to reboot many times in next couple of hours?

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

                  A new version of the package that contains the fix will be up in 15-45 mins or so, be patient and then update when it's available.

                  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
                  • V
                    vajonam Rebel Alliance
                    last edited by

                    just tried out 0.2.5. sudo now works fine.

                    I did notice this in the serial console after the uninstall/reinstall

                    Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20121212/zmq.so' - Shared object "libpgm-5.2.so.0" not found, required by "libzmq.so.4" in Unknown on line 0
                    

                    after which everytime php-fpm restarted it showed up in the logs.

                    i then did a

                    ldconfig -m /usr/local/lib
                    

                    which seems to address it, again not sure if is a symptom of something else. but I suspect it is.

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

                      That's something different, worthy of its own thread if there isn't one already.

                      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
                      • V
                        vajonam Rebel Alliance
                        last edited by

                        Okay let me try to reproduce it consistently and will start a thread. thanks for your help w/ this.

                        1 Reply Last reply Reply Quote 0
                        • P
                          phil.davis
                          last edited by

                          sudo 0.2.5 working for me on 2.2.1 64 and 32 bit nanoBSD.
                          Thanks JimP for a very useful little package.

                          As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
                          If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

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

                            Good to hear it's working, now hopefully we can track down the original issue and fix that up. If other packages suffer the same fate, they deserve their own threads, hopefully their maintainers or others can work in a similar 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!

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