这个是报错日志
[2015/12/16 23:52:05, 1] smbd/service.c:make_connection_snum(1085)
huangjiale (192.168.241.1) connect to service root initially as user root (uid=0, gid=0) (pid 5684)
[2015/12/16 23:52:12, 1] smbd/service.c:close_cnum(1282)
huangjiale (192.168.241.1) closed connection to service netlogon
[2015/12/16 23:52:22, 1] smbd/service.c:close_cnum(1282)
huangjiale (192.168.241.1) closed connection to service root
[2015/12/17 00:00:04, 0] lib/util_sock.c:read_data(540)
read_data: read failure for 4 bytes to client 192.168.241.1. Error = Connection reset by peer
[2015/12/17 00:00:25, 0] lib/util_sock.c:read_data(540)
read_data: read failure for 4 bytes to client 192.168.241.1. Error = Connection reset by peer
下面是smb.conf的配置
[global]
workgroup = lduan
server string = Samba Server Version %v
# logs split per machine
# max 50KB per log file, then rotate
security = user
passdb backend = tdbsam
security = user
domain master = yes
domain logons = yes
# the login script name depends on the machine name
logon script = test.bat
# the login script name depends on the unix user used
logon path = \\%N\%U\profile
logon home =\\%N\%U
# disables profiles support by specifing an empty path
local master = yes
os level = 100
preferred master = yes
wins support = yes
load printers = yes
cups options = raw
#obtain list of printers automatically on SystemV
[homes]
comment = Home Directories
browseable = no
writable = yes
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes
[netlogon]
comment = Network Logon Service
path = /home/samba/netlogon
write list =root
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。