Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

2 Answers 2

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

 
discard

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