Thi*_*uda 4 linux ubuntu debian samba wins
我有一台带有两个虚拟机的 Ubuntu 11.04 计算机:debian 和 windows xp。每个 vm 也有 Host-only 连接,所以我可以从 Host 看到它们而无需设置端口转发。
所有机器都可以使用ip地址互相ping通,但是linux机器(ubuntu主机和debian来宾)不能通过名称ping windows xp,只能使用'nmblookup'之类的工具或在nautilus中输入'smb://hostname'。Windows XP 可以按名称 ping 所有机器。
当然,我必须在 smb.conf 中缺少一些配置。这是我正在使用的当前版本:
[global]
workgroup = WORKGROUP
server string = %h server (Samba, Ubuntu)
name resolve order = bcast host lmhosts wins
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
use client driver = yes
map to guest = Bad User
usershare allow guests = Yes
usershare max shares = 100
usershare owner only = False
Run Code Online (Sandbox Code Playgroud)
任何帮助将不胜感激。
不只是桑巴!
您需要安装 Winbind,它还会安装执行您要查找的操作所需的名称服务切换库。如果/lib/libnss_winbind您的系统上存在,您需要做的就是修改以下hosts行/etc/nsswitch.cfg:
hosts files dns winbind
Run Code Online (Sandbox Code Playgroud)
关键是winbind线。这告诉 Linux 使用 Windows 系统进行名称解析。
| 归档时间: |
|
| 查看次数: |
7897 次 |
| 最近记录: |