我在 Arch 上运行 smbd 3.6.7。它工作正常,只是在登录尝试失败和注销后会崩溃。
这是使用错误密码的示例。rpcclient
在一个终端中运行,smbd
在另一个终端中运行。当发送错误密码时该smbd
过程结束。rpcclient
$ rpcclient -L localhost -Utim
Enter tim's password:
Cannot connect to server. Error was NT_STATUS_LOGON_FAILURE
$
//
$ sudo smbd -i -d 2
smbd version 3.6.7 started.
Copyright Andrew Tridgell and the Samba Team 1992-2011
uid=0 gid=0 euid=0 egid=0
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Registered MSG_REQ_POOL_USAGE
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[homes]"
Processing section "[media]"
Processing section "[karin-backup]"
added interface eth0 ip=fe80::226:2dff:fe78:ac61%eth0 bcast=fe80::ffff:ffff:ffff:ffff%eth0 netmask=ffff:ffff:ffff:ffff::
added interface eth0 ip=192.168.1.5 bcast=192.168.1.255 netmask=255.255.255.0
waiting for connections
check_ntlm_password: Authentication for user [tim] -> [tim] FAILED with error NT_STATUS_WRONG_PASSWORD
$
正确密码的示例:
$ rpcclient -L localhost -Utim
Enter tim's password:
rpcclient $> getusername
Account Name: tim, Authority Name: JANA
rpcclient $> quit
$
//
$ sudo smbd -i -d 2
smbd version 3.6.7 started.
...
waiting for connections
check_ntlm_password: authentication for user [tim] -> [tim] -> [tim] succeeded
$
如果我尝试使用错误的密码从 Windows (XP) 连接到共享,它也会崩溃。有了正确的密码,我能访问共享。
问题可能是什么?
这是我的 smb.conf:http://pastebin.com/sGyu2XWh