Results 1 to 1 of 1
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Nov 2004
auto-unmount not working for samba
i just set up a very basic samba server on my Debian box. In smb.conf, I saw the commented out section to create a share for a cd drive as well as the lines to mount the drive when you connect to the share and unmount when you disconnect.
my smb.conf contains
[cdrom] comment = linux box cd drive path = /cdrom guest ok = Yes locking = no preexec = /bin mount /cdrom postexec = /bin/umount /cdrom
When I connect to the share from windows, the drive is mounted and I can access the files, but when I close the window (I'm assuming this closes the samba connection) the /bin/umount is never executed.
Is there something I need to be doing on the windows side to invoke the postexec event? or something that needs to change on the linux end?