在fedora中禁用自动挂载


1

我已经编辑 /etc/hal/fdi/policy/prefrences.fdi

<deviceinfo version="0.2">
  <device>
    <match key="storage.policy.should_mount" bool="true">
      <merge key="storage.policy.should_mount" type="bool">false</merge>
    </match>
    <match key="storage.automount_enabled_hint" bool="true">
      <merge key="storage.automount_enabled_hint" type="bool">false</merge>
    </match>
    <match key="storage.media_check_enabled" bool="true">
      <merge key="storage.media_check_enabled" type="bool">false</merge>
    </match>
    <match key="volume.policy.should_mount" bool="true">
      <merge key="volume.policy.should_mount" type="bool">false</merge>
    </match>
    <match key="volume.ignore" bool="false">
      <merge key="volume.ignore" type="bool">true</merge>
    </match>
  </device>
</deviceinfo>

但没有帮助

也知道我可以使用gconf,但是用户可以修改自己的gconf文件。我希望没人能挂载USB闪存盘,这让我和一些特殊用户感到惊讶


GNOME不再使用hal。磁盘安装由完成udisks,可以通过PolicyKit进行控制。
grawity

Answers:


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.