Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I place a CDROM with some scripts into the drive, Redhat will automatically mount a folder on the desktop. However, I can't execute the scripts on that CD. To do that, I have to manually mount with the 'exec' option. How do I get Redhat to give me 'exec' permission when it auto-mounts the CD?

share|improve this question

The procedure for RHEL5 is described at HAL Tips and Tricks. I believe that on RHEL4 you just need to adjust /etc/fstab to add "exec" to the mount point, basically what's described there but without so many caveats.

share|improve this answer

Find this line in /etc/auto.misc:

cd              -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom

and make it look like this:

cd              -fstype=iso9660,ro,nosuid,nodev,exec :/dev/cdrom
share|improve this answer

Your Answer


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