[SuSE Linux] Another SAMBA problem
I've searched the samba site, read the FAQ. I guess I have an infrequently asked question. I have samba running on my Linux server. The server's CD-ROM is shared. I noticed if a win95 client maps the CD-ROM "folder" to a drive letter, I can not umount the CD-ROM. Even after the drive letter is unmapped, I cannot umount the CD. How to I unmount the CD-ROM? Stopping samba, then restarting it seems fairly brutish, and I would prefer to use a more elegant method. George -- Ever wonder why a quart of spring water costs more than a gallon of gasoline? - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
In your /etc/smb.conf, whereever you have the share for the cdrom defined, add two lines for preexec and postexec that would mount the cdrom if someone wants to access it and unmount the cdrom once they release the share. It worked great here, the only thing is that you will have to completely qualify the commands.... preexec = /usr/bin/mount /cdrom postexec = /usr/bin/umount /cdrom
I have samba running on my Linux server. The server's CD-ROM is shared. I noticed if a win95 client maps the CD-ROM "folder" to a drive letter, I can not umount the CD-ROM. Even after the drive letter is unmapped, I cannot umount the CD.
How to I unmount the CD-ROM? Stopping samba, then restarting it seems fairly brutish, and I would prefer to use a more elegant method.
-- cya l8r Leon McClatchey leonmcclatchey@homemail.com Linux User 78912 (Win95 Box) - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
Leon McClatchey wrote:
In your /etc/smb.conf, whereever you have the share for the cdrom defined, add two lines for preexec and postexec that would mount the cdrom if someone wants to access it and unmount the cdrom once they release the share. It worked great here, the only thing is that you will have to completely qualify the commands....
preexec = /usr/bin/mount /cdrom postexec = /usr/bin/umount /cdrom
Works great - thanks. George - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
participants (2)
-
leonmcclatchey@homemail.com
-
toftd001@hawaii.rr.com