今天公司有同事samba用不了,具体步骤如下:
[bruceg@developerjail /home]$ smbclient -L \\IPADRESS -U zhongw
Enter berbiey's password:
session setup failed: NT_STATUS_LOGON_FAILURE
网上查看相关问题,发现可能是系统或者samba中某一处用用户引起的,正确的应该是samba和系统中同时有该用户!
解决办法:
bruceg@developerjail /home]$ sudo /usr/local/bin/smbpasswd -a zhongw
[bruceg@developerjail /home]$ smbclient -L \\IPADDRESS -U zhongw
Enter zhongw's password:
Domain=[DEVELOPERJAIL] OS=[Unix] Server=[Samba 3.3.8]
Sharename Type Comment
--------- ---- -------
IPC$ IPC IPC Service (Samba Server)
zhongw Disk Home Directories
Domain=[DEVELOPERJAIL] OS=[Unix] Server=[Samba 3.3.8]
Server Comment
--------- -------
Workgroup Master
--------- -------
MYGROUP DEVELOPERJAIL
问题得到解决
本文转自 shine_forever 51CTO博客,原文链接:http://blog.51cto.com/shineforever/317305