开发者社区> 问答> 正文

Linux下用Samba作PDC配置方法,window能弹出登录框但是进不去

这个是报错日志
[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

展开
收起
杨冬芳 2016-07-15 11:33:57 3128 0
0 条回答
写回答
取消 提交回答
问答排行榜
最热
最新

相关电子书

更多
Alibaba Cloud Linux 3 发布 立即下载
ECS系统指南之Linux系统诊断 立即下载
ECS运维指南 之 Linux系统诊断 立即下载