我的配置如下:
# Global parameters
[global]
server string = test
username map = /etc/samba/smbusers
log file = /var/log/samba/%m.log
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = No
read only = No
hosts allow = 192.168.1.2, 127.
browseable = No
[pub]
comment = this is my samba server
path = /var/ftp/pub
create mask = 0664
directory mask = 0777
有几个诊断信息:
[root@test samba]# service smb restart
关闭 SMB 服务: [ 确定 ]
关闭 NMB 服务: [ 确定 ]
启动 SMB 服务: [ 确定 ]
启动 NMB 服务: [ 确定 ]
[root@test samba]# /usr/bin/smbclient -L SMBserver
Connection to SMBserver failed
[root@test samba]#
[root@test samba]# /usr/bin/nmblookup SMBserver
querying SMBserver on 192.168.1.255
name_query failed to find name SMBserver
[root@test samba]# /usr/bin/nmblookup test
querying test on 192.168.1.255
192.168.1.110 test<00>
192.168.1.110 test<00>
[root@test samba]#