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