|
我前几天配置好了samba,昨天还用的好好的,可以自己动了什么,突然出现了这样的问题,不管是smbtree,还是smbclient,都用不到了:
[root@HobbyZeng ~]# smbtree
Server's Role (logon server) conflicts with share-level security
Password:
session request to 192.168.1.31 failed (Call returned zero bytes (EOF))
session request to *SMBSERVER failed (Call returned zero bytes (EOF))
session request to ORBJ7O0LD394TLN failed (Call returned zero bytes (EOF))
session request to *SMBSERVER failed (Call returned zero bytes (EOF))
[root@HobbyZeng ~]# smbclient -L //192.168.1.31/ -U guest%
Server's Role (logon server) conflicts with share-level security
session request to 192.168.1.31 failed (Call returned zero bytes (EOF))
session request to 192 failed (Call returned zero bytes (EOF))
session request to *SMBSERVER failed (Call returned zero bytes (EOF))
在出现问题前后我应该都没有修改配置文件,配置文件如下:
[root@HobbyZeng ~]# testparm
Load smb config files from /etc/samba/smb.conf
Can't find include file /etc/samba/smb.conf.
Processing section "[homes]"
Processing section "[printers]"
Processing section "[share]"
Server's Role (logon server) conflicts with share-level security
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
# Global parameters
[global]
workgroup = MSHOME
netbios name = HOBBYLINUX
server string = Hobby's Samba Server
interfaces = 192.168.1.21/255.255.255.0
security = SHARE
username map = /etc/samba/smbusers
log file = /var/log/samba/%m.log
max log size = 50
name resolve order = lmhosts bcast
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = /etc/printcap
domain logons = Yes
remote browse sync = 192.168.1.255
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
hosts allow = 192.168.1., 127.0.0.1
hosts deny = ALL
cups options = raw
case sensitive = No
include = /etc/samba/smb.conf.
[homes]
comment = Home Directories
read only = No
[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No
[share]
comment = hobby's linux
path = /home/hobby/share
valid users = nobody
guest ok = Yes
[root@HobbyZeng ~]#
请问出现这样的情况是因为什么原因?请高手帮帮忙!谢谢! |
|