当前位置: 技术问答>linux和unix
samba的配置
来源: 互联网 发布时间:2015-01-12
本文导语: 我们公司是windows网络,现在我装了一台RedHat8.0 的工作站,为了与其他的机器(win2000)共享资源,我安装了samba,在其他的机器(win2000)上的网上邻居中可以看到我的机器,但是一点击就报"找不到网络路径"的错误.而且在其他的...
我们公司是windows网络,现在我装了一台RedHat8.0 的工作站,为了与其他的机器(win2000)共享资源,我安装了samba,在其他的机器(win2000)上的网上邻居中可以看到我的机器,但是一点击就报"找不到网络路径"的错误.而且在其他的机器上,ping我机器的ip,可以ping通,但ping我的机器名字,就出错.不知为什么?请高手指点.多谢.
#======================= Global Settings =====================================
[global]
netbios name = samba
workgroup = workgroup
server string = samba server
hosts allow = 192.168.199. 127.0.0.1
printcap name = /etc/printcap
load printers = no
printing = lprng
guest account = linux
log file = /var/log/samba/%m.log
max log size = 50
security = share
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
unix password sync = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %nn *Retype*new*password* %nn *passwd:*all*authentication*tokens*updated*successfully*
pam password change = yes
obey pam restrictions = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
interfaces = 192.168.199.210/24
dns proxy = no
#============================ Share Definitions ==============================
[homes]
comment = Home Directories
browseable = no
writable = yes
valid users = %S
create mode = 0664
directory mode = 0775
[testdoc]
comment = Network Logon Service
path = /doc
guest ok = yes
writable = no
share modes = yes
#======================= Global Settings =====================================
[global]
netbios name = samba
workgroup = workgroup
server string = samba server
hosts allow = 192.168.199. 127.0.0.1
printcap name = /etc/printcap
load printers = no
printing = lprng
guest account = linux
log file = /var/log/samba/%m.log
max log size = 50
security = share
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
unix password sync = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %nn *Retype*new*password* %nn *passwd:*all*authentication*tokens*updated*successfully*
pam password change = yes
obey pam restrictions = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
interfaces = 192.168.199.210/24
dns proxy = no
#============================ Share Definitions ==============================
[homes]
comment = Home Directories
browseable = no
writable = yes
valid users = %S
create mode = 0664
directory mode = 0775
[testdoc]
comment = Network Logon Service
path = /doc
guest ok = yes
writable = no
share modes = yes
|
lokkit
close firewall
close firewall
|
哥们儿,你用的是share,拿你还要验证密码干什么? mask it。
建议使用user。在home加上wirte list = @groupname
建议使用user。在home加上wirte list = @groupname
|
注意一下hosts allow 看是否在允许的范围内