scripts of granting vms permissions