Hi all, Does anyone know if or where sudo's binary file path can be changed for vagrant to know where sudo binary is located during vagrant up or vagrant provision?
I'm using Ubuntu 13.10 (host) 64 bit, Vagrant 1.6.4, VirtualBox 4.2.16 and the vagrant guest box is Solaris 10 update 11. Problem: Vagrant expects sudo to live in /usr/bin/sudo (or /bin/sudo) as one would expect in Linux. Sudo in Solaris 10 (in my setup) lives in /usr/local/bin/sudo. Even if my guest box knows all paths and vagrant is in the sudo configured correctly; vagrant still gives the usual error: bash: sudo: command not found The following SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed! chmod +x /tmp/vagrant-shell && /tmp/vagrant-shell Workaround: create a symlink to the expected place on the guest .e.g. ln -s /usr/local/bin/sudo /usr/bin/sudo. However, I'd like to ask to make the path customisable for sudo binary when vagrant up or vagrant provision is invoked depending which OS is used. Of course, please let me know if there already such a variable available in Vagrantfile or elsewhere. Any questions please let me know. -- You received this message because you are subscribed to the Google Groups "Vagrant" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
