Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question
    
GNOME does not use hal anymore; disk mounting is done by udisks, and can be controlled through PolicyKit. –  grawity Feb 3 '11 at 12:55

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.