
我在 Mac 上安裝了 Parallels,並創建了 Fedora 11 虛擬機器。一切工作正常,除了我的 Mac 和虛擬機之間的文件共享不起作用。在 Parallels 文件中,他們說我必須停用 SELinux 才能讓共用資料夾正常運作。
如何在 Fedora 11 上停用 SELinux?
文件說的另一件事(它也不起作用)是在 fstab 中配置:
無 /media/psf prl_fs 默認,共享 0 0
但是當我嘗試安裝此設備時,我收到錯誤的 fs 類型訊息。
有人知道我該做什麼嗎?
答案1
如果你打開/etc/selinux/config
你會看到一行內容:
SELINUX=enforcing
將其更改為:
SELINUX=disabled
禁用 SELinux。
未知檔案系統類型訊息表示並行檔案系統驅動程式未載入。你能貼上命令的輸出lsmod
嗎?
答案2
在 VM 內,將檔案/etc/selinux/config
SELINUX 指令編輯為停用,如下所示:
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
SELINUXTYPE=targeted