I would like to change the default attributes for the DVD/CDROM mounting point to add the execution flag.
I have some DVD/CDROM with shell scripts and when I insert them in my DVD drive, the DVD is mounted as read only, so I can run scripts from the DVD support.
Is it possible to change/complete the udev rules to change default attribute to 555 ?
udev is very strange/complicate for me to understand and I need help from expert.
Today, to do this I first unmount the default mount point create by udev when I insert the DVD:
And create a new mounting point, and mount myself the DVD like this:
% sudo umount /media/volume_name
Is there a way to do it in a "smarter way" ?
% sudo mkdir /mnt/dvdrom
% sudo mount –o ro,nosuid,nodev,noauto,uid=1000,gid=1000,mode=0555 /dev/sr0 /mnt/dvdrom