phil.davis last edited by
built on Thu Apr 17 04:52:48 CDT 2014
32-bit nanoBSD Alix 2D13
Installs, but when I try to use sudo, I get:
[2.2-ALPHA][firstname.lastname@example.org]/home/admin.phil(3): sudo Illegal instruction [2.2-ALPHA][email@example.com]/home/admin.phil(4): sudo -s Illegal instruction
I guess the PBI needs to be built for FreeBSD 10 or something?
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
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.
built on Thu Apr 17 10:54:20 CDT 2014
[2.2-ALPHA][firstname.lastname@example.org]/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][email@example.com]/home/rx(25): setgroups: Operation not permitted
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)
Wow, that was quick….
I'll do that. Will report back here.
built on Mon Apr 28 16:52:25 CDT 2014
sudo seems to work now, although the system log complained about:
php-fpm: /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
Fix is pending for that one, we updated PHP to 5.5 so lots of packages will need slight tweaks.
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.
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.
phil.davis last edited by
Yes, it still gives:
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.