diff --git a/lib/vagrant/systems/linux.rb b/lib/vagrant/systems/linux.rb index b89fadf60..70c8a43b2 100644 --- a/lib/vagrant/systems/linux.rb +++ b/lib/vagrant/systems/linux.rb @@ -48,7 +48,7 @@ module Vagrant def mount_shared_folder(ssh, name, guestpath) ssh.exec!("sudo mkdir -p #{guestpath}") mount_folder(ssh, name, guestpath) - ssh.exec!("sudo chown #{config.ssh.username} #{guestpath}") + ssh.exec!("sudo chown #{vm.env.config.ssh.username} #{guestpath}") end def mount_nfs(ip, folders) @@ -109,10 +109,6 @@ module Vagrant sleep sleeptime end end - - def config - vm.env.config - end end class Linux < Base