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

    Sudo

    Scheduled Pinned Locked Moved 2.2 Snapshot Feedback and Problems - RETIRED
    10 Posts 3 Posters 2.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.
    • P
      phil.davis
      last edited by

      2.2-ALPHA (i386)
      built on Thu Apr 17 04:52:48 CDT 2014
      FreeBSD 10.0-STABLE

      32-bit nanoBSD Alix 2D13

      Sudo 0.2

      Installs, but when I try to use sudo, I get:

      [2.2-ALPHA][admin.phil@testoffice-rt-01.xyz.org]/home/admin.phil(3): sudo
      Illegal instruction
      [2.2-ALPHA][admin.phil@testoffice-rt-01.xyz.org]/home/admin.phil(4): sudo -s
      Illegal instruction
      
      

      I guess the PBI needs to be built for FreeBSD 10 or something?

      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

        It is built for 10 and otherwise seems OK, but I get the same error.

        : file /usr/pbi/sudo-i386/bin/sudo
        /usr/pbi/sudo-i386/bin/sudo: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), dynamically linked (uses shared libs), for FreeBSD 10.0 (1000510), not stripped
        : file /usr/pbi/sudo-i386/local/bin/sudo
        /usr/pbi/sudo-i386/local/bin/sudo: setuid ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), dynamically linked (uses shared libs), for FreeBSD 10.0 (1000510), stripped
        

        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
        • NeverSimpleN
          NeverSimple
          last edited by

          This is what I get on an AMD64 system. Snapshot is a couple of days old. sudo package installed without errors.

          Not sure if it is related.

          2.2-ALPHA (amd64)
          built on Thu Apr 17 10:54:20 CDT 2014

          
          [2.2-ALPHA][rx@pfsense.rx.nl]/home/rx(24): sudo
          fuse: failed to open fuse device: No such file or directory
          mount: /usr/pbi/.mounts/sudo-amd64/virtbase/dev: No such file or directory
          mount: /usr/pbi/.mounts/sudo-amd64/virtbase/proc: No such file or directory
          mount_nullfs: /usr/pbi/.mounts/sudo-amd64/virtbase/tmp: No such file or directory
          mount_nullfs: /usr/pbi/.mounts/sudo-amd64/virtbase/usr: No such file or directory
          .pbime: Could not chroot to: /usr/pbi/.mounts/sudo-amd64/virtbase: Operation not permitted
          .pbime: [2.2-ALPHA][rx@pfsense.rx.nl]/home/rx(25): setgroups: Operation not permitted
          
          

          Richard

          pfSense 2.7 home router
          Shutlle DS77U (passively cooled Intel Celeron CPU 3865U)
          8GB RAM, OCZ 60GB SSD
          NIC's: build in Intel i211 & i219LM

          Business: several Netgate devices

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

            Actually the PBI system was undergoing some work, I'm told. A new set of PBIs for 2.2 is up now but you need the latest code for them to work properly (gitsync or wait for a new snap)

            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
            • NeverSimpleN
              NeverSimple
              last edited by

              Wow, that was quick….

              I'll do that. Will report back here.

              Richard

              pfSense 2.7 home router
              Shutlle DS77U (passively cooled Intel Celeron CPU 3865U)
              8GB RAM, OCZ 60GB SSD
              NIC's: build in Intel i211 & i219LM

              Business: several Netgate devices

              1 Reply Last reply Reply Quote 0
              • NeverSimpleN
                NeverSimple
                last edited by

                2.2-ALPHA (amd64)
                built on Mon Apr 28 16:52:25 CDT 2014

                sudo seems to work now, although the system log complained about:

                
                php-fpm[14929]: /rc.start_packages: Sudoers file invalid:
                
                

                So I went to 'System' > 'sudo', left the settings at default and clicked 'save'. This was the result.

                
                Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of sudo_validate_commands(). in /usr/local/www/pkg_edit.php(143) : eval()'d code on line 1
                
                

                pfSense 2.7 home router
                Shutlle DS77U (passively cooled Intel Celeron CPU 3865U)
                8GB RAM, OCZ 60GB SSD
                NIC's: build in Intel i211 & i219LM

                Business: several Netgate devices

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

                  Fix is pending for that one, we updated PHP to 5.5 so lots of packages will need slight tweaks.

                  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

                    Well, a fix for the call-time pass-by-reference is in, but other errors prevent the sudo package from working. It's part of the PBI system in general that we're working on.

                    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
                    • NeverSimpleN
                      NeverSimple
                      last edited by

                      Oops,

                      I thought the sudo command itself was working… but when having a couple of putty sessions open, it helps to check the command on the box where you intent to...  :-[

                      You're right, the sudo command doesn't seem to work on 2.2.

                      Richard

                      pfSense 2.7 home router
                      Shutlle DS77U (passively cooled Intel Celeron CPU 3865U)
                      8GB RAM, OCZ 60GB SSD
                      NIC's: build in Intel i211 & i219LM

                      Business: several Netgate devices

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

                        Yes, it still gives:

                        Illegal instruction
                        

                        on:
                        2.2-ALPHA (i386)
                        built on Thu May 01 02:23:21 CDT 2014
                        sudo Security 0.2.1

                        As JimP says, a bunch of 2.2 package stuff needs looking at.

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