|
From: Joe Z. <jz...@at...> - 2003-05-07 05:50:58
|
D'Arcey Carroll wrote: >Hi, > >I've seen in other posts where the (un)mounting can hang and it is theorized >to be "samba's problem." I am looking for ways to track this down, as this >problem chronically affects me. > >I have run the same command that it runs and gotten the same results: > > smbmount //servername/sharename /mnt/mntpt -o >username=bobs,password=clearTextPassword > >This hangs for some time, eventually timing out. > >when a slightly modified command is run: > > smbmount //servername/sharename /mnt/mntpt -o username=bobs > >the system will prompt for the password and procede normally. My theory is >therefore that the cleartext storage of the password will hang on samba >servers that expect the password to be encrypted. I was wondering if you >could confirm this or shoot it down. I'm encouraged in this analysis by the >plethora of "FIXME's" around all the user password references. > >Is there a workaround (such as wrapping a call to crypt() or something?)? > >Thanks in advance, > >DC > > D'Arcey, I have the same problem. I tried several times manually mounting and unmounting with and without the 'password=xxx'. At first it seemed to work without the password, then it continued to hang either way. I thought my problem was the computer I'm connecting to is a slow 166mhz running Win95. I assumed it didn't like the constant mounting and unmounting and would get confused. I just did a google search on 'smbmount hangs' and came up with this http://lists.samba.org/pipermail/samba-technical/1998-June/016855.html. Basically, it says to add '< /dev/null > /tmp/smbmount.out 2> /tmp/smbmount.err' to the end of the smbmount command to keep it from hanging when using autofs. I tried it from the command line and it seemed to keep it from hanging when mounting and unmounting over and over. Like this: smbmount //servername/sharename /mnt/mntpt -o username=whomever,password=clearTextPassword < /dev/null > /tmp/smbmount.out 2> /tmp/smbmount.err I wonder if you get the same results. Would you try it and let me know please? Thanks, Joe Zacky |