# workgroup = NT-Domain-Name or Workgroup-Name
workgroup = calysc
netbios name = calys-c
# server string is the equivalent of the NT Description field
server string = Samba Server
# This option is important for security. It allows you to restrict
# connections to machines which are on your local network. The
# following example restricts access to two C class networks and
# the "loopback" interface. For more examples of the syntax see
# the smb.conf man page
hosts allow = 210.38.5. 10.0.0. 127. 11.0.0.
# if you want to automatically load your printer list rather
# than setting them up individually then you'll need this
printcap name = /etc/printcap
; load printers = yes
# It should not be necessary to spell out the print system type unless
# yours is non-standard. Currently supported print systems include:
# bsd, sysv, plp, lprng, aix, hpux, qnx
printing = lprng
# Uncomment this if you want a guest account, you must add this to /etc/passwd
# otherwise the user "nobody" is used
; guest account = pcguest
# this tells Samba to use a separate log file for each machine
# that connects
log file = /var/log/samba/%m.log
# Put a capping on the size of the log files (in Kb).
max log size = 0
# Security mode. Most people will want user level security. See
# security_level.txt for details.
security = user
# Use password server option only with security = server or
# security = domain
; password server =
# Password Level allows matching of _n_ characters of the password for
# all combinations of upper and lower case.
; password level = 8
; username level = 8
# You may wish to use password encryption. Please read
# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.
# Do not enable this option unless you have read those documents
; encrypt passwords = yes
; smb passwd file = /etc/samba/smbpasswd
# about the pdc samba
preferred master = yes
domain master = yes
local master = yes
wins support = yes
os level = 100
domain logons = yes
logon drive = K:
time server = yes
admin users = root
; logon path = \\%N\%U\profile
; logon home = \\%N\%U
username map = /etc/samba/smbusers
# about pdc path
[homes]
comment = Home Directories
browseable = no
writable = yes
# Un-comment the following and create the netlogon directory for Domain Logons
; [netlogon]
; comment = Network Logon Service
; path = /home/netlogon
; guest ok = yes
; writable = no
; share modes = no
省略........
以上是我的配置文件,但是我的xp是能识别网域名,但是等入提示:未知的用户名或密码
帐户密码也没错阿 , 那是什么错? 防火墙和selinux都关了 。
求解,跪谢。
568040142 于 2011-11-21 13:57:33发表:
都可以的 ,就是不知道为什么会这样的了。。
alick 于 2011-11-19 11:19:02发表:
怎么看起来像是网络问题~~~
samba 服务启动后,
1) 在samba服务器上用samba客户端连接本机samba共享,正常否?
2) samba 服务器上用samba客户端连接远程XP系统的网络共享,正常否?
568040142 于 2011-11-18 09:23:02发表:
Nov 18 09:17:59 gzpro1 smbd[6567]: [2011/11/18 09:17:59, 0] lib/util_sock.c:get_peer_addr(1224)
Nov 18 09:17:59 gzpro1 smbd[6567]: getpeername failed. Error was Transport endpoint is not connected
Nov 18 09:17:59 gzpro1 smbd[6567]: [2011/11/18 09:17:59, 0] lib/access.c:check_access(327)
Nov 18 09:17:59 gzpro1 smbd[6567]: [2011/11/18 09:17:59, 0] lib/util_sock.c:get_peer_addr(1224)
Nov 18 09:17:59 gzpro1 smbd[6567]: getpeername failed. Error was Transport endpoint is not connected
Nov 18 09:17:59 gzpro1 smbd[6567]: Denied connection from (0.0.0.0)
Nov 18 09:17:59 gzpro1 smbd[6567]: [2011/11/18 09:17:59, 0] lib/util_sock.c:get_peer_addr(1224)
Nov 18 09:17:59 gzpro1 smbd[6567]: getpeername failed. Error was Transport endpoint is not connected
Nov 18 09:17:59 gzpro1 smbd[6567]: Connection denied from 0.0.0.0
Nov 18 09:17:59 gzpro1 smbd[6567]: [2011/11/18 09:17:59, 0] lib/util_sock.c:write_data(562)
Nov 18 09:17:59 gzpro1 smbd[6567]: write_data: write failure in writing to client 210.38.5.71. Error Connection reset by peer
Nov 18 09:17:59 gzpro1 smbd[6567]: [2011/11/18 09:17:59, 0] lib/util_sock.c:send_smb(761)
Nov 18 09:17:59 gzpro1 smbd[6567]: Error writing 5 bytes to client. -1. (Connection reset by peer)
在messages找到错误如上
568040142 于 2011-11-18 09:20:10发表:
很奇怪 我打个没有的帐户上去他提示未知用户或错误密码 ,打个有的反而出找不到用户名
568040142 于 2011-11-18 09:17:34发表:
是smbuser 密码和系统用户一样的
alick 于 2011-11-17 23:28:57发表:
也许是用户还不是smbuser?