smbmounted shares don't stay mounted

Tom Holroyd tomh at taz.ccs.fau.edu
Wed Dec 2 04:43:36 GMT 1998


I'm running Linux 2.1.130 on an AXP, with Samba 2.0 beta 2.  I have smbfs
enabled in the kernel with Win 95 bug fixes enabled but I'm not running
smbd.  The server containing the share is an HP running Samba 1.9.16p11. 
I mount the share with
	smbmount //hpname/share -c 'mount /home/me/mydir'

All is well for a while (~1 hour), but then I get

kernel: smb_get_length: recv error = 5
kernel: smb_request: result -5, setting invalid
kernel: smb_retry: caught signal
kernel: smb_retry: caught signal

and the share is gone.  Furthermore, the window where I executed smbmount
starts to ask for the password again, but as it has given up the pty
there's no way to type it in again.  The smbmount processes exits and the
mount point is left pointing at nothing and has to be removed by root. 

P.S. I had to #undef HAVE_SETRESUID because setresgid() seems to be
missing from this configuration, but otherwise everything is
off-the-shelf.

Dr. Tom Holroyd -- tomh at nibh.go.jp
Behavior Control Lab, Human Informatics Dept.            The basis of
National Institute of Bioscience and Human-Technology    stability is
1-1 Higashi, Tsukuba-shi, Ibaraki 305, Japan             instability.
The 9th Amendment of the U.S. Constitution:
"The enumeration in the Constitution, of certain rights, shall not be
construed to deny or disparage others retained by the people."



More information about the samba mailing list