Account Links: Cart | Your Account | Logout

Skip to content

Red Hat Knowledgebase

Red Hat Knowledgebase Search:

Updated Within the Last:

New Solutions within the last day New Solutions within the last week New Solutions within the last month

Browse by topics:


Click to View a Topic
Red Hat Enterprise Linux > AS/ES/WS v. 4 > Issue <<  330 of 628 >>

Solution Tools:


Email a Solution Postcard Printer version Submit a comment on this answer Update notifications Request an answer Back

Article Reference

Article ID: 6999
Last update: 07-10-06
Issue:
How do I change the default options for removable devices in Red Hat Enterprise Linux 4?
Resolution:

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.


How well did this entry answer your question?


good wrong incomplete out of date
Red Hat Enterprise Linux > AS/ES/WS v. 4 > Issue <<   330  of  628  >>