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@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."
On Wed, 2 Dec 1998, Tom Holroyd wrote:> 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' >If you don't include the password on the smbmount line it will ask again when the connection timeout. So you should do: % smbmount //hpname/share password -c 'mount /home/me/mydir' This will make smbmount reconnect without asking. As far as I can tell the retry messages are normal. I ran into this myself some weeks ago ... It would be simple for the client to remember the password typed at the password prompt. Someting like: --- samba-2.0.0beta2/source/client/clientutil.c.org Wed Dec 2 11:02:40 1998 +++ samba-2.0.0beta2/source/client/clientutil.c Wed Dec 2 11:04:18 1998 @@ -605,8 +605,13 @@ if (got_pass) pass = password; - else + else { pass = (char *)getpass("Password: "); + + /* Remember for next time */ + got_pass = True; + password = strdup(pass); + } if(!pass) pass = ""; But I'm not sure if there is a reason for not remembering. Michael? The code above is completely untested, and I'm not sure if the strdup is necessary. /Urban --- Urban Widmark urban@svenskatest.se Svenska Test AB +46 90 71 71 23