samba pcd 配置

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
skip.qiu
帖子: 4
注册时间: 2009-03-22 14:42
送出感谢: 0
接收感谢: 0

samba pcd 配置

#1

帖子 skip.qiu » 2009-04-02 16:13

大家好! 我在在配置samba 域服务器的时候, 配置好了, 但是xp不能加入到域, 提示说“找不到用户名”。 我上网查了好多资料, 都没有解决这个问题。 请帮忙看一下。我的配置文件是这样的:
[global]
workgroup = skip
server string = skip's samba-servera
netbios name = skip
# local master = yes
# os level = 33
# prefered master = yes
# domain master = yes
dns proxy = no
name resolve order = lmhosts host wins bcast
interfaces = eth0
bind interfaces only = yes
log file = /var/log/samba/log.%m
max log size = 1000
syslog only = no
syslog = 0
# panic action = /usr/share/samba/panic-action %d
security = suer
username map = /etc/samba/smbusers
encrypt passwords = true
smb passwd file = /etc/samba/smbpasswd
# what's the difference between tdbsam and smbpasswd
# passdb backend = tdbsam
# obey pam restrictions = yes what's mean ? adding this there is a problem
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user

domain logons = yes
logon path = \\%N\%U\profile
logon drive = S:
logon home = \\%N\%U
logon script = logon.cmd
load printers = yes
printing = cups
printcap name = cups
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
# template shell = /bin/bash
# enable privileges = yes
# nt acl support = yes
# hide dot files = yes
# usershare allow guests = yes
add machine script = sudo /usr/sbin/useradd -n -g machines -c Machine -d /var/lib/samba -s /bin/false %u

[homes]
comment = Home Directories
browseable = no
# writable = yes
read only = no
create mask = 0700
directory mask = 0700
# create mode = 0644
# directory mode = 0775
# create mask = 0711
# directory = 0711
valid users = %S
# map hidden = yes
# map system = yes
# map read only = permissions
hide files = /RECYCLER/
[netlogon]
comment = Network Logon Service
path = /home/samba/netlogon
guest ok = yes
read only = yes
# browseable = no
share modes = no
# write list = skip
# create mask = 0777
# directory mask = 0777
# map hidden = yes
# map system = yes
# map read only = permissions
[tmp]
comment = tmp samba
path = /var/samba/
# guest ok = yes
browseable = yes
force group = "Domain Users"
writeable = yes
# valid users = skip
# public = yes
create mask = 0777
directory mask = 0777
force create mode = 0666

[printers]
comment = All Printers
browseable = no
path = /var/spool/samba
printable = yes
guest ok = no
read only = yes
create mask = 0700
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = no
[cdrom]
comment = Samba server's CD-ROM
read only = yes
locking = no
path = /cdrom
guest ok = yes
preexec = /bin/mount /cdrom
postexec = /bin/umount /cdrom

谢谢大家帮忙!
回复

回到 “服务器基础应用”