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
[EMAIL PROTECTED]
Linux User 78912 (Win95 Box)


-
To get out of this list, please send email to [EMAIL PROTECTED] with
this text in its body: unsubscribe suse-linux-e
Check out the SuSE-FAQ at http://www.suse.com/Support/Doku/FAQ/ and the
archiv at http://www.suse.com/Mailinglists/suse-linux-e/index.html

Reply via email to