diff --git a/plugins/guests/linux/cap/mount_smb_shared_folder.rb b/plugins/guests/linux/cap/mount_smb_shared_folder.rb index eb3441d72..d85bdf6dc 100644 --- a/plugins/guests/linux/cap/mount_smb_shared_folder.rb +++ b/plugins/guests/linux/cap/mount_smb_shared_folder.rb @@ -48,7 +48,7 @@ module VagrantPlugins # Write the credentials file machine.communicate.sudo(<<-SCRIPT) -cat </etc/smb_creds_#{name} +cat <<"EOF" >/etc/smb_creds_#{name} username=#{username} password=#{smb_password} #{domain ? "domain=#{domain}" : ""}