I am running a red hat 7.0 samba server. I have
a cdrom tower attached (seven SCSI-2 drives). My
clients are 5 NT4's and 6 W95's.
I am using (smb.conf) "root preexec" and "root postexec"
to mount and dismount the cdrom disks. The users
mounts all of the CD-ROM's as a drive letter and never
disconnect from them. (Several of their programs
require a permanent drive letter be assigned to their
respective cdrom drive in the tower.)
This makes changing the disks a problem. (Their content
changes on a weekly basis.)
So, I installed (an smb.conf) "deadtime" of ten minutes.
Presto! I can now removed the disks after ten minutes if
the clients are not attached to any of the files on the cdrom
But, the next time the client wants to use the disk, he get the
empty mount point and not the cdrom disk. In other words,
after he gets deadtimed off the cdrom, he doesn't trigger
"root preexec" because he is already logged on.
Does anyone have a better way of doing this? Is there a
way to get the "root preexec" to re-execute after they have