From cdbe14c09effe38033a0c4aa5edc3ce7075e79f1 Mon Sep 17 00:00:00 2001 From: Ivan Evtuhovich Date: Wed, 29 Dec 2010 19:01:54 +0300 Subject: [PATCH] Fix bug with mount vboxfs in SLES 11 boxes. Issue #251 --- lib/vagrant/systems/linux.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/vagrant/systems/linux.rb b/lib/vagrant/systems/linux.rb index adee20bd0..d4cf65847 100644 --- a/lib/vagrant/systems/linux.rb +++ b/lib/vagrant/systems/linux.rb @@ -92,8 +92,8 @@ module Vagrant def mount_folder(ssh, name, guestpath, sleeptime=5) # Determine the permission string to attach to the mount command perms = [] - perms << "uid=#{vm.env.config.vm.shared_folder_uid}" - perms << "gid=#{vm.env.config.vm.shared_folder_gid}" + perms << "uid=`id -u #{vm.env.config.vm.shared_folder_uid}`" + perms << "gid=`id -g #{vm.env.config.vm.shared_folder_gid}`" perms = " -o #{perms.join(",")}" if !perms.empty? attempts = 0