Skip to content

Commit

Permalink
bugfix: v1.0.7 bugfix for fileshare creation, local users and sharing…
Browse files Browse the repository at this point in the history
… for Everyone doesn't work in domains
  • Loading branch information
jagorjat committed Jan 30, 2015
1 parent e21b4ec commit dd2588c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/vagrant-vmm/scripts/sync_folders.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,12 @@ if ( $sync_required )
Write-host "$(&hostname) :: Creating fileshare on the remote host in $fileshare_dest, granting access to Everyone"
$shr = New-SmbShare -Name "vagrant-sync" -Temporary -Path $fileshare_dest
}
$g_info = Grant-SmbShareAccess -InputObject $shr -AccountName Everyone -AccessRight Full -Force -Confirm
$g_info = Grant-SmbShareAccess -InputObject $shr -AccountName "$($env:USERDOMAIN)\$($env:USERNAME)" -AccessRight Full -Force
}

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

Write-host "Syncing files to fileshare..."
foreach ( $hst_path in $copy_files.Keys )
Expand Down
2 changes: 1 addition & 1 deletion lib/vagrant-vmm/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module VagrantPlugins
module VMM
VERSION = "1.0.6"
VERSION = "1.0.7"
end
end

0 comments on commit dd2588c

Please sign in to comment.