Every once in a while the topic of sharing cdroms comes up in these forums. Posters of these topics are usually referred to the contrib module that allows sharing a cdrom through samba. This solution is not suitable for all networks, e.g. it doesn't work for networks that include appletalk clients. Besides, e-smith has long had a mechanism for making resources available for file sharing through samba, appletalk and ftp: the ibay. Why not use that to share the contents of a cd-rom inserted in the e-smith server with the rest of the network? I've used this method for quite some time now and wondered why it hadn't been suggested in these forums before. Here's what I do:
-Create an ibay for sharing your cd-rom. In the ibay web panel you can indicate whether or not you want to share it through ftp. In the example below the ibay is called cd4all.
-Insert a cd-rom and mount it onto the files directory of your freshly created ibay, like so:
mount /dev/cdrom /home/e-smith/files/ibays/cd4all/files/
Now the contents of the cdrom is available for samba, appletalk, and (depending on ibay configuration) ftp clients on your network.
-To remove the cd-rom from your server, simply type
eject
Unmounting and ejecting the cdrom will only work if there are no client connections to the cd-rom.
If you're really lazy you could make a shell script to mount the cd-rom. I've never looked into automounting, but I suppose it could be configured for this set-up.