Re: smb.conf and preexec
tony mollica wrote:
>
> Hi. I'm running samba 1.9.18p8 on a Debian
> 2.0, 2.0.34 system connected to a winnt4sp3
> network. Most everything works nicely, but
> I can't get the cdrom's (2 scsi) on the Linux
> box to automount with "preexec = ". The fstab
> is set as follows and as recommended in the smb.conf
> file:
>
> /dev/scd0 /cd0 iso9660 defaults,noauto,user,ro 0 0
>
> The smb.conf entry is
>
> [cd0]
> comment = Samba Server's cdrom 0
> writable = no
> locking = no
> path = /cd0
> public = yes
> preexec /bin/mount /cd0
> postexec /bin/umount /cd0
...
Looks to me like the problem may be very simple -- try:
preexec = /bin/mount /cd0
postexec = /bin/mount /cd0
I seem to recall reading in a man page or other doc at one point that Samba
won't like it if you forget those "=" signs, and that just makes sense.
Chris
________________________________________________________
Chris Kaltwasser chris@vote-smart.org
Director of Online Services Project Vote Smart
Office: (541) 737-0747 FAX: (541) 737-8108
1-888-VOTE SMART (1-888-868-3762)
http://www.Vote-Smart.org
Reply to: