[Samba] [3.6.8] XP fails with error 1326
Winfried
codecomplete at free.fr
Wed Oct 9 08:15:35 MDT 2013
Thanks for the help.
One thing that isn't clear from what I read on the Net, is whether it is
required to create a user in Samba or if an entry in /etc/passwd is enough
to grant access: Several documents use the "nobody" account which is already
part of /etc/passwd by default, so I didn't originally think it necessary to
also add that username in Samba.
1. But then, I suspected the former, and ran "useradd samba" followed by
"smbpasswd -a samba" with a password:
<code>
# smbpasswd -a samba
New SMB password: blah
Retype new SMB password: blah
</code>
2. However, I notice that "pdbedit" is 1) missing data for "NT username",
and 2) uses the Netbios name for the Domain instead of the Workgroup name I
chose:
smb.conf
<code>
[global]
workgroup = WORKGROUP
netbios name = LINUX
encrypt passwords = yes
;wins support = yes
log level = 2
;max log size = 1000
;guest account = nobody
guest account = samba
map to guest = Bad User
;REQUIRES ADDING USERS TO SAMBA THROUGH smbpasswd?
security = user
;DEPRECATED BUT REQUIRED WHEN USING nobody?
;security = share
;DEPRECATED
;null passwords = yes
[test]
path = /tmp
browsable = yes
read only = yes
guest ok = yes
only guest = yes
public = yes
available = yes
;force user = nobody
force user = samba
</code>
pdbedit -L -v
<code>
Unix username: samba
NT username:
Account Flags: [U ]
User SID: S-1-5-21-3543732248-827301621-1011492160-501
Primary Group SID: S-1-5-21-3543732248-827301621-1011492160-513
Full Name:
Home Directory:
HomeDir Drive: (null)
Logon Script:
Profile Path:
Domain: LINUX
</code>
3. Finally, when running "net view" from a Windows 7 host, Samba still
doesn't 1) force usernames to "samba" and 2) grant access:
<code>
[2013/10/09 16:13:41.458888, 2] smbd/reply.c:553(reply_special)
netbios connect: name1=LINUX 0x20 name2=FRED-PC 0x0
[2013/10/09 16:13:41.460377, 2] smbd/reply.c:573(reply_special)
netbios connect: local=linux remote=fred-pc, name type = 0
[2013/10/09 16:13:41.465734, 2] smbd/sesssetup.c:1279(setup_new_vc_session)
setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all
old resources.
[2013/10/09 16:13:41.468900, 2] smbd/sesssetup.c:1279(setup_new_vc_session)
setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all
old resources.
[2013/10/09 16:13:41.818774, 2] smbd/reply.c:553(reply_special)
netbios connect: name1=LINUX 0x20 name2=FRED-PC 0x0
[2013/10/09 16:13:41.820275, 2] smbd/reply.c:573(reply_special)
netbios connect: local=linux remote=fred-pc, name type = 0
[2013/10/09 16:13:41.832520, 2] auth/auth.c:319(check_ntlm_password)
check_ntlm_password: Authentication for user [fred] -> [fred] FAILED with
error NT_STATUS_NO_SUCH_USER
[2013/10/09 16:13:41.837126, 2] auth/auth.c:319(check_ntlm_password)
check_ntlm_password: Authentication for user [fred] -> [fred] FAILED with
error NT_STATUS_NO_SUCH_USER
</code>
Any idea what I could try next?
Thank you.
--
View this message in context: http://samba.2283325.n4.nabble.com/3-6-8-XP-fails-with-error-1326-tp4654631p4654749.html
Sent from the Samba - General mailing list archive at Nabble.com.
More information about the samba
mailing list