Friday, January 21, 2011

CD-ROM sharing via samba

# A sample share for sharing your CD-ROM with others.
[cdrom]
comment = Samba server's CD-ROM
read only = yes
locking = no
path = /cdrom
guest ok = yes


# The next two parameters show how to auto-mount a CD-ROM when the cdrom share is accesed. 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


NB:_ tested on ubuntu 10.04

No comments:

Post a Comment