我正在使用Nginx服务器。我想使用Vagrantfile将一个配置文件复制到/etc/nginx/conf.d。我使用的命令是:
config.vm.provision "file", source: "./bolt.local.conf", destination: "/etc/nginx/conf.d/bolt.local.conf"
我收到的错误信息是:
Failed to upload a file to the guest VM via SCP due to a permissions
error. This is normally because the SSH user doesn't have permission
to write to the destination location. Alternately, the user running
Vagrant on the host machine may not have permission to read the file.
我正在使用bento/ubuntu-16.04镜像。
我试图寻找一种方法来更改provision命令的权限,但我只找到了更改config.vm.share_folder命令所有者的方法。
你知道答案吗?