Hi guys, I've been scanning the list for a while and can't see anything about the problem I have. I have spent the last week spinning my wheels on many installs of Samba. Finally found the HP specific CIFS and installed it, which fixed some problems. Now I am stuck somewhere else (big surprise): # smbclient -L localhost -U% added interface ip=142.183.217.206 bcast=142.183.217.255 nmask=255.255.255.0 Domain=[BELL] OS=[Unix] Server=[Samba 2.0.6] tree connect failed: code 0 Interesting, I thought. So I tried (with the password for the current user): # smbclient -L localhost added interface ip=142.183.217.206 bcast=142.183.217.255 nmask=255.255.255.0 Password: session setup failed: ERRSRV - ERRbadpw (Bad password - name/password pair in a Tree Connect or Session Setup are invalid.) Also tried this: # smbclient '\\bc5ckv\tmp' added interface ip=142.183.217.206 bcast=142.183.217.255 nmask=255.255.255.0 Password: session setup failed: ERRSRV - ERRbadpw (Bad password - name/password pair in a Tree Connect or Session Setup are invalid.) I have looked at the fault tree for the O'Reilly online tutorial, and can't get past this step (it doesn't go into enough detail on what to check if this test doesn't pass) Here is my smb.conf: [global] workgroup = BELL netbios name = BC5CKV server string = Samba Server encrypt passwords = Yes password server = * username map = /etc/opt/samba/smbusers syslog = 0 log file = /var/opt/samba/log.%m max log size = 1000 local master = No read only = No short preserve case = No dos filetime resolution = Yes [homes] comment = Home Directories browseable = No [tmp] path = /tmp guest ok = Yes Here is my smbusers file: strang = "siou.trang" dking = "dwayne.king" jprat = "john.pratecante" I appreciate any help anyone can offer. I am sure this is a REALLY simple problem, which is why I held off asking for so long, but I can't waste any more time. Thanks in advance. DK
Dwayne, On Thu, 2 Nov 2000 15:55:09 -0500, King, Dwayne wrote:>I have spent the last week spinning my wheels on many installs of >Samba. Finally found the HP specific CIFS and installed it, which >fixed some problems.>Now I am stuck somewhere else (big surprise):># smbclient -L localhost -U% >added interface ip=142.183.217.206 bcast=142.183.217.255 nmask>255.255.255.0 >Domain=[BELL] OS=[Unix] Server=[Samba 2.0.6] >tree connect failed: code 0According to the usenet this one ("tree connect failed: code 0") almost always has to do something with a mismatch between an older Linux kernel and a newer glibc. Well, this is clearly NOT your problem. :-) But indeed it points to some mismatch between your system and the Samba binary you installed. I suggest you go and get yourself a fresh copy of the Samba sources (2.0.7) and recompile/reinstall from scratch.># smbclient -L localhost >added interface ip=142.183.217.206 bcast=142.183.217.255 nmask>255.255.255.0 >Password: >session setup failed: ERRSRV - ERRbadpw (Bad password - name/password >pair in a Tree Connect or Session Setup are invalid.)This might have to do with the above problem, but in most cases its just your user is not in smbpasswd or has no password set there (you will find more details in ENCRYPTION.txt). Regards, Robert -- --------------------------------------------------------------- Robert.Dahlem@gmx.net Fax +49-69-432647 --------------------------------------------------------------- Sent using PMMail (http://www.pmmail2000.com) - fast, decent, email software; far better than Outlook. Try it sometime.
Robert, Thanks for your reply. Unfortunately, I went to the HPUX distrib of Samba because of problems with the 2.0.7 source I tried. The configure script fails on the 2.0.7 distribution with: ... checking if large file support can be enabled yes checking configure summary WARNING: No automated network interface determination ERROR: no seteuid method available configure: error: summary failure. Aborting config On another note, I have been taking a look in the logs, and found the following: [2000/11/05 13:37:03, 1] smbd/password.c:(505) Couldn't find user 'nobody' in smb_passwd file. [2000/11/05 13:37:03, 1] smbd/reply.c:(909) Rejecting user 'nobody': authentication failed Even though I have executed the following command successfully: addtosmbpass dking strang root nobody < /dev/null >samba.pwd BTW, how does samba know the name of the password file I want to use? I'll keep plugging away, but I seem to be going in circles. Thanks in advance. DK -----Original Message----- From: Robert Dahlem [mailto:Robert.Dahlem@gmx.net] Sent: November 5, 2000 5:08 AM To: King, Dwayne; samba@lists.samba.org Subject: Re: ARGHHHH! Simple problem I'm sure. Dwayne, On Thu, 2 Nov 2000 15:55:09 -0500, King, Dwayne wrote:>I have spent the last week spinning my wheels on many installs of >Samba. Finally found the HP specific CIFS and installed it, which >fixed some problems.>Now I am stuck somewhere else (big surprise):># smbclient -L localhost -U% >added interface ip=142.183.217.206 bcast=142.183.217.255 nmask>255.255.255.0 >Domain=[BELL] OS=[Unix] Server=[Samba 2.0.6] >tree connect failed: code 0According to the usenet this one ("tree connect failed: code 0") almost always has to do something with a mismatch between an older Linux kernel and a newer glibc. Well, this is clearly NOT your problem. :-) But indeed it points to some mismatch between your system and the Samba binary you installed. I suggest you go and get yourself a fresh copy of the Samba sources (2.0.7) and recompile/reinstall from scratch.># smbclient -L localhost >added interface ip=142.183.217.206 bcast=142.183.217.255 nmask>255.255.255.0 >Password: >session setup failed: ERRSRV - ERRbadpw (Bad password - name/password >pair in a Tree Connect or Session Setup are invalid.)This might have to do with the above problem, but in most cases its just your user is not in smbpasswd or has no password set there (you will find more details in ENCRYPTION.txt). Regards, Robert -- --------------------------------------------------------------- Robert.Dahlem@gmx.net Fax +49-69-432647 --------------------------------------------------------------- Sent using PMMail (http://www.pmmail2000.com) - fast, decent, email software; far better than Outlook. Try it sometime.
>Are you _really_ sure samba.pwd is the right file in the right >directory? Does it have correct entries?You were right on the money there. Didn't know about that. So I recreated the pw file, in the appropriate directory, and the correct entries are in there. Additionally, I have verified that all the UID's match those in /etc/passwd I tried clearing out the logs, and then trying exactly one login. What I got was the following repeated exactly 30 times: [2000/11/06 08:36:05, 0] passdb/smbpass.c:(179) getsmbfilepwent: uids in the smbpasswd file must not be negative. [2000/11/06 08:36:05, 1] smbd/password.c:(511) Account for user 'dking' was disabled. Upon checking, the UID for nobody is -2 in /etc/passwd Is this normal? Can I change this to any positive integer and not affect other system things? Any signigicance to the number 30? Basically, any test from the troubleshooting list that requires a password ("smbclient -L myserver", "smbclient '\\myserver\tmp") doesn't work, but all the others do ("nmblookup -B myserver __SAMBA__ ,"nmblookup -B myclient '*'", "nmblookup -d 2'*'") Thanks again. You've been a great help. DK
A thousand thanks. Things seem to be working OK now. At least I can map the drive OK - I'll get into verifying permissions etc later. One last question (I promise!). Isn't there a way to have the Samba password inherit that of the unix account? i.e. I map our NT domain name "dwayne.king" to the unix name "dking", however enabling the samba account with "smbpasswd -e dking" requires a separate password. Obviously, I could just set them the same, but I am thinking about when the unix pw changes. Thanks again for all your help. DK -----Original Message----- From: Robert Dahlem [mailto:Robert.Dahlem@gmx.net] Sent: November 6, 2000 9:52 AM To: King, Dwayne; samba@lists.samba.org Subject: RE: ARGHHHH! Simple problem I'm sure. Dwayne, On Mon, 6 Nov 2000 08:41:07 -0500, King, Dwayne wrote:>>Are you _really_ sure samba.pwd is the right file in the right >>directory? Does it have correct entries?>You were right on the money there. Didn't know about that. So I >recreated the pw file, in the appropriate directory, and the correct >entries are in there. Additionally, I have verified that all the >UID's match those in /etc/passwd>I tried clearing out the logs, and then trying exactly one login. >What I got was the following repeated exactly 30 times: > >[2000/11/06 08:36:05, 0] passdb/smbpass.c:(179) > getsmbfilepwent: uids in the smbpasswd file must not be negative.This is due to nobody's UID set to -2.>[2000/11/06 08:36:05, 1] smbd/password.c:(511) > Account for user 'dking' was disabled.You need to do 'smbpasswd -e dking'. This will enable the account.>Upon checking, the UID for nobody is -2 in /etc/passwd Is this >normal?This is likely to be how your system comes out of the box. So call it "normal" if you like to. :-)>Can I change this to any positive integer and not affect other system >things? Any signigicance to the number 30?I would not mess around with the nobody account. Add a new user smbguest and care for a positive UID. Try to log in as that user: it should have a valid home directory and so on. Now disable/lock the account, your passwd command surely has an option for this. On my system this would be 'passwd -l smbguest'. Add the user to smbpasswd with 'smbpasswd -a smbguest', make sure it is enabled: 'smbpasswd -e smbguest'. Then add 'guest account = smbguest' to the [global] section of your smb.conf. Try again and report on the outcome. :-) Regards, Robert --------------------------------------------------------------- Robert.Dahlem@gmx.net Fax +49-69-432647 ---------------------------------------------------------------