Samba -- XP user can log in to shares but smbclient user always gets password errors
I have a samba server set up with two shares - one requires a password, one doesn't. I can access both shares using an XP box just fine - access the public share, it works; access the password-protected share, it asks for the password, then it works. Problem is I can't do the same thing from a Linux box. Using smbclient, I can access the public share fine, but when I access the password-protected share, I type the password in, and it won't accept the password.
//blinky/shared is my public share. Both XP box and smbclient have no trouble with it. //blinky/joe is my password-protected share... [root@rocko ~]# smbclient //blinky/joe Password: (I type the password in) Domain=[NEWIEHOUSE] OS=[Unix] Server=[Samba 3.0.10-1.fc3] tree connect failed: NT_STATUS_WRONG_PASSWORD [root@rocko ~]# smbmount //blinky/joe /mnt/joe Password: (I type the password in) 6451: tree connect failed: ERRSRV - ERRbadpw (Bad password - name/password pairin a Tree Connect or Session Setup are invalid.) SMB connection failed If I try connecting to smb://blinky/joe in Konquerer, it asks for the login details, but doesn't accept anything. It just keeps asking for the login details, over and over. I know the password I am typing is correct, because it works in XP. I have also tried: smbclient //blinky/joe username=joe smbclient //blinky/joe username=Joe but I am led to believe that having "security = share" in smb.conf means the username does not matter. Any hints as to why smbclient is failing while XP is getting through? Perhaps this is something to do with whether plain-text or encrypted passwords are being used? I guess this because smbclient will successfully connect to my public share, just not to the password protected one, though I can't find much info on this. I'm probably way off anyway :) I am using Fedora Core 3 on both server and client. Here's the server's config files: smb.conf Code:
[global] Code:
# Unix_name = SMB_name1 SMB_name2 ... Code:
joe:500:0B7C116B4B217D98D3FA0823D124F9E0:93477CE0040622CF348900E0600D4397:[U ]:LCT-426262BF: |
You should trie machinename/username when you log in. (smbclient //blinky/joe username=blinky/joe .
|
Quote:
smbmount //blinky/joe /mnt/joe username=blinky/joe smbmount //blinky/joe /mnt/joe username=blinky/Joe smbmount //blinky/joe /mnt/joe username=blinky\joe smbmount //blinky/joe /mnt/joe username=blinky\Joe smbmount //blinky/joe /mnt/joe username=rocko/joe (and all the other / or \, Joe or joe combinations...) smbmount //blinky/joe /mnt/joe username=newiehouse/joe (and the other combinations...) smbmount //blinky/joe /mnt/joe username=USERS/joe (and the other combinations...) smbmount //blinky/joe /mnt/joe username=BLINKY/joe (and the other combinations...) ... :) The smbclient man page doesn't say much about usernames and passwords. Anyone know where I can find some better info? |
Fixed.
Shouldn't have had lanman auth = no in smb.conf. |
All times are GMT -5. The time now is 08:01 AM. |