路徑中的不安全世界可寫目錄 /mnt/c,流浪漢中的模式 040777

路徑中的不安全世界可寫目錄 /mnt/c,流浪漢中的模式 040777

我試圖在 windows linux 子系統上發出 vagrant up 並出現此錯誤。

/opt/vagrant/embedded/gems/2.2.7/gems/vagrant-2.2.7/lib/vagrant/util/which.rb:37: warning: Insecure world writable dir /mnt/c in PATH, mode 040777
Vagrant failed to initialize at a very early stage:

Vagrant is unable to use the VirtualBox provider from the Windows Subsystem for
Linux without access to the Windows environment. Enabling this access must be
done with caution and an understanding of the implications. For more information
on enabling Windows access and using VirtualBox from the Windows Subsystem for
Linux, please refer to the Vagrant documentation:

  https://www.vagrantup.com/docs/other/wsl.html

我已經嘗試刪除並重新安裝 vagrant,但這不是問題。我在做

chmod go-w /mnt/c

對於每個不安全的世界都可寫,但對於 /mnt/c 這個指令不起作用。有人能幫我嗎?

我也已經嘗試過做

[automount]
options="metadata,umask=0033"

在 etc/wsl.conf 中我創建了一個文件,但它不起作用。我甚至無法發出 vagrant ssh 。

相關內容