[cdrom] comment = Samba server's CD-ROM writable = no locking = no path = /mnt/cdrom public = yes ; ; The next two parameters show how to auto-mount a CD-ROM when the ; cdrom share is accessed. For this to work /etc/fstab must contain ; an entry like this: ; /dev/scd0 /cdrom iso9660 defaults,noauto,ro,user 0 0 ; The CD-ROM gets unmounted automatically after the connection to the ; If you don't want to use auto-mounting/unmounting make sure the CD ; is mounted on /cdrom ; preexec = /bin/mount /cdrom ; postexec = /bin/umount /cdrom ################################################