1

I have edited /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>

but is does not help

also know I can use gconf for that but the user can chage his own gconf file. I want no one be able to mount a usb flash disk excpet me and some special users

1
  • GNOME does not use hal anymore; disk mounting is done by udisks, and can be controlled through PolicyKit.
    – user1686
    Feb 3, 2011 at 12:55

1 Answer 1

0

gsettings set org.gnome.desktop.media-handling automount false

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.