将我的家庭服务器从CentOS版本6升级到7,也将Samba从版本3.6.9-169.el6_5升级到版本4.6.2。
这样做时,我/etc/samba/smb.conf
直接移植了文件,这对于将Samba共享正常工作到我的PC上是很好的。
但是,我的WD TV Media Player无法连接到Samba共享,否则以前可以正常工作。
我smb.conf
文件的活动和相关部分是这样的:
[global]
workgroup = MY
server string = %h
netbios name = MYSRV
hosts allow = 127. 192.168.12. 192.168.13.
auto services = global movie
guest ok = yes
guest account = movie
browseable = yes
wins support = yes
security = user
passdb backend = tdbsam
load printers = yes
cups options = raw
[movie]
comment = Movie all files
path = /media/movie
public = yes
writable = yes
valid users = @users, movie, nobody
create mask = 0644
directory mask = 0755
printable = no
smbstatus
成功连接到共享后,具有Samba版本3.6.9-169.el6_5的CentOS 6服务器提供以下输出:
Samba version 3.6.9-169.el6_5
PID Username Group Machine
-------------------------------------------------------------------
3158 movie nobody 192.168.13.57 (192.168.13.57)
3153 movie nobody mymh7 (192.168.13.57)
Service pid machine Connected at
-------------------------------------------------------
barn 3158 192.168.13.57 Sun Mar 25 12:57:37 2018
IPC$ 3149 mymh7 Sun Mar 25 12:56:51 2018
movie 3158 192.168.13.57 Sun Mar 25 12:57:37 2018
IPC$ 3153 mymh7 Sun Mar 25 12:57:36 2018
IPC$ 3150 mymh7 Sun Mar 25 12:56:51 2018
No locked files
具有Samba版本4.6.2的CentOS 7服务器smbstatus
在无法连接到共享后提供了以下输出:
Samba version 4.6.2
PID Username Group Machine Protocol Version Encryption Signing
----------------------------------------------------------------------------------------------------------------------------------------
7268 movie nobody mymh7 (ipv4:192.168.13.57:41824) NT1 - -
7267 movie nobody 192.168.13.57 (ipv4:192.168.13.57:56874) NT1 - -
7266 movie nobody 192.168.13.57 (ipv4:192.168.13.57:56873) NT1 - -
Service pid Machine Connected at Encryption Signing
---------------------------------------------------------------------------------------------
IPC$ 7266 192.168.13.57 Sun Mar 25 12:01:58 PM 2018 CEST - -
IPC$ 7267 192.168.13.57 Sun Mar 25 12:01:58 PM 2018 CEST - -
IPC$ 7268 mymh7 Sun Mar 25 12:02:01 PM 2018 CEST - -
对什么可能是错误的任何想法,或者对我应该尝试的事情的建议?
似乎WD(西方数字)电视媒体播放器(Live gen。3)使用NTLMv1和/或Lanman密码身份验证,并且在Samba版本4.6.2中默认禁用此功能。因此,我必须smb.conf
使用以下命令在文件中至少启用NTLM身份验证:
ntlm auth = yes
作为参考,调试过程是smb.conf
使用以下命令在文件中启用详细日志记录:
log level = 3
然后/var/log/samba/192.168.13.57.log
列出文件:
...
[2018/03/31 17:05:42.238771, 2] ../libcli/auth/ntlm_check.c:423(ntlm_password_check)
ntlm_password_check: NTLMv1 passwords NOT PERMITTED for user movie
[2018/03/31 17:05:42.238821, 3] ../libcli/auth/ntlm_check.c:442(ntlm_password_check)
ntlm_password_check: Lanman passwords NOT PERMITTED for user movie
[2018/03/31 17:05:42.238913, 3] ../libcli/auth/ntlm_check.c:588(ntlm_password_check)
ntlm_password_check: LM password and LMv2 failed for user movie, and NT MD4 password in LM field not permitted
[2018/03/31 17:05:42.239469, 2] ../source3/auth/auth.c:315(auth_check_ntlm_password)
check_ntlm_password: Authentication for user [movie] -> [movie] FAILED with error NT_STATUS_WRONG_PASSWORD
...
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句