View Full Version : [SOLVED] Possible to mount/umount volumes when SMB clients connect/disconnect (or idle)

January 20th, 2011, 01:48 PM
Is it possible to defer actually mounting a volume on the server, until a Samba client connects to the server and tries to access it?

Similarly, can it automatically be unmounted when the last client disconnects or has been idle for some time?

Of course there is. "preexec" and "postexec".

Should have tried that one more Google attempt before posting. :)