United States (change)
Shortcuts: Downloads Fedora Red Hat Network
Account Links: Cart Your Account Logout
To detect filesystem types and new devices being added, Red Hat Enterprise Linux 4 uses HAL. To override the default mount options for removable devices, create a file in /usr/share/hal/fdi/95userpolicy/ called 01-options-policy.fdi, with the following content:
<?xml version="1.0" encoding="ISO-8859-1"?> <deviceinfo version="0.2"> <device> <match key="@block.storage_device:storage.bus" string="usb"> <merge key="volume.policy.mount_option.umask=002" type="bool">true</merge> </match> </device> </deviceinfo>
The <merge key="..." part is where the option is defined. Replace umask=002 with your umask option and restart HAL with the following command:
service haldaemon restart
Next time a USB key drive is plugged in, the options should be present in the /etc/fstab for that mountpoint.