Stefan_qwb 发表于 2014-02-27 13:09

SAMBA服务器无法登陆

求助SAMBA搭PDC 客户端无法登陆
SMB.CONF
      1
      2
      3
      4
      5         workgroup = Qdomain
      6         server string = Samba Server Version %v
      7
      8         netbios name = Qin
      9 :       socket options=TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192 SO_RCVBUF=8192
   10 ;       os level=64
   11         interfaces = eth0
   12         hosts allow = 127. 192.168.12. 192.168.13. 192.168.2. 192.168.6.
   13 ;       preferred master=yes
   14 ;       local master=yes
   15 ;       domain master=yes
   16         # logs split per machine
   17         log file = /var/log/samba/%m.log
   18         # max 50KB per log file, then rotate
   19         max log size = 50
   20
   21
   22         security = user
   23         passdb backend = tdbsam
   24
   25
   26
   27
   28 ;       security = domain
   29 ;       passdb backend = tdbsam
   30 ;       realm = MY_REALM
   31
   32 ;       password server = <NT-Server-Name>
   33
   34 ;       security = user
   35 ;       passdb backend = tdbsam
   36
   37         domain master = yes
   38         domain logons = yes
   39         logon script=startup.bat
   40         # the login script name depends on the machine name
   41         logon script = startup.bat
   42         # the login script name depends on the unix user used
   43 ;       logon script = %u.bat
   44 ;       logon path = \\%L\Profiles\%u
   45         # disables profiles support by specifing an empty path
   46 ;       logon path =
   47
   48 ;       add user script = /usr/sbin/useradd "%u" -n -g users
   49 ;       add group script = /usr/sbin/groupadd "%g"

   50 ;       add machine script = /usr/sbin/useradd -n -c "Workstation (%u)" -M -d /nohome -s /bin/false "%u"
   51 ;       delete user script = /usr/sbin/userdel "%u"
   52 ;       delete user from group script = /usr/sbin/userdel "%u" "%g"
   53 ;       delete group script = /usr/sbin/groupdel "%g"
   54
   55
   56         local master = no
   57         os level = 200
   58         preferred master = yes
   59
   60
   61 ;       wins support = yes
   62 ;       wins server = w.x.y.z
   63 ;       wins proxy = yes
   64
   65 ;       dns proxy = yes
   66
   67
   68 ;       load printers = yes
   69 ;       cups options = raw
   70
   71 ;       printcap name = /etc/printcap
   72         #obtain list of printers automatically on SystemV
   73 ;       printcap name = lpstat
   74 ;       printing = cups
   75
   76
   77 ;       map archive = no
   78 ;       map hidden = no
   79 ;       map read only = no
   80 ;       map system = no
   81 ;       store dos attributes = yes
   82
   83         comment=share
   84         path=/home/samba
   85         browseable=yes
   86         public=yes
   87
   88
   89
   90         comment = Home Directories
   91         browseable = no
   92         writable = yes
   93 ;       valid users = %S
   94 ;       valid users = MYDOMAIN\%S

   95
   96
   97
   98
   99         comment = All Printers
    100         path = /var/spool/samba
    101         browseable = no
    102         guest ok = no
    103         writable = no
    104         printable = yes
    105
    106
    107         comment = Network Logon Service
    108         path = /home/samba/netlogon
    109         guest ok = yes
    110         writable = no
    111         share modes = no
    112         follow symlinks = yes
    113
    114
    115 ;      
    116 ;       path = /var/lib/samba/profiles
    117 ;       browseable = no
    118 ;       guest ok = yes
    119
    120
    121 ;      
    122 ;       comment = Public Stuff
    123 ;       path = /home/samba
    124 ;       public = yes
    125 ;       writable = yes
    126 ;       printable = no
    127 ;       write list = +staff

SMB用户如下
# pdbedit -L
root:0:root
test1$:502:
qin$:500:machine id



客户端登陆显示加入域“Qdomain”时出现了如下错误:找不到用户名    用户用ROOT登陆

Stefan_qwb 发表于 2014-02-27 13:23

自己顶贴!!!手工顶帖

Stefan_qwb 发表于 2014-03-04 09:49

自己顶贴!!!手工顶帖

zhanglp888 发表于 2014-03-26 14:13

selinux是开着还是关了?

cryboy2001 发表于 2014-03-26 15:01

smb用来做与windows共享还是蛮成熟的,
但用来做PDC,还真没做过。做的人比较少,也可能存在兼容性的问题。
而且,在与XP与win7下的认证又不同,所以很麻烦。

你可以先
1、关掉iptbles 与 selinux减少干扰
2、先共享,测试密码

再做pdc的测试
页: [1]
查看完整版本: SAMBA服务器无法登陆