- 论坛徽章:
- 0
|
开机可以启动SAMBA服务,从WINDOWS客户端也可以正常访问.
但大概一天后,就不能访问了.
(机器reboot,则服务又再次正常,但一天后还是会失效)
以下是我所看到的情况:
此时看SMB服务,是正常的.
[root@localhost home]# service smb status
smbd (pid 16622 9968 9959) 正在运行...
nmbd (pid 9963) 正在运行...
[root@localhost home]#
但用smbclient看,则得到如下错误提示:
[root@localhost home]# smbclient -L localhost
Receiving SMB: Server stopped responding
protocol negotiation failed
[root@localhost home]#
用testparm,得到如下结果
[root@localhost samba]# testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[printers]"
Processing section "[tmp]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
[global]
workgroup = MYGROUP
server string = NC TXT DOWNLOAD
passdb backend = tdbsam
log file = /var/log/samba/%m.log
max log size = 50
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
cups options = raw
[homes]
comment = Home Directories
read only = No
browseable = No
[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No
[tmp]
comment = NC TXT DOWNLOAD
path = /tmp
valid users = nc55
guest ok = Yes
[root@localhost samba]#
不知是什么原因,在网上搜索了2天了.也没有找到答案.
请高手出手相助,多谢! |
|