Skip to content

Commit dd2588c

Browse files
author
jagorjat
committed
bugfix: v1.0.7 bugfix for fileshare creation, local users and sharing for Everyone doesn't work in domains
1 parent e21b4ec commit dd2588c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/vagrant-vmm/scripts/sync_folders.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -144,12 +144,12 @@ if ( $sync_required )
144144
Write-host "$(&hostname) :: Creating fileshare on the remote host in $fileshare_dest, granting access to Everyone"
145145
$shr = New-SmbShare -Name "vagrant-sync" -Temporary -Path $fileshare_dest
146146
}
147-
$g_info = Grant-SmbShareAccess -InputObject $shr -AccountName Everyone -AccessRight Full -Force -Confirm
147+
$g_info = Grant-SmbShareAccess -InputObject $shr -AccountName "$($env:USERDOMAIN)\$($env:USERNAME)" -AccessRight Full -Force
148148
}
149149

150150
# get access to the fileshare from the current machine
151151
Write-host "Getting access from the current machine to the created fileshare (\\$vm_address\vagrant-sync)"
152-
$vagrant_sync_drive = New-PSDrive -Name 'V' -PSProvider 'FileSystem' -Root "\\$vm_address\vagrant-sync"
152+
$vagrant_sync_drive = New-PSDrive -Name 'V' -PSProvider 'FileSystem' -Root "\\$vm_address\vagrant-sync" -Credential $creds_to_vm
153153

154154
Write-host "Syncing files to fileshare..."
155155
foreach ( $hst_path in $copy_files.Keys )

lib/vagrant-vmm/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module VagrantPlugins
22
module VMM
3-
VERSION = "1.0.6"
3+
VERSION = "1.0.7"
44
end
55
end

0 commit comments

Comments
 (0)