我遇到了一件奇怪的事情。我刚刚用 ubuntu 12.04 设置了我兄弟的笔记本电脑。我安装了 samba,并通过右键单击 -> 共享此文件夹在他的 /home 中共享了他的公共文件夹。我在 Samba 中输入了正确的工作组 (JAVED-HOME)。计算机能够访问 Ubuntu 服务器并读取其共享,但当我尝试从服务器访问他的公共文件夹时......它给出了一个错误“无法挂载:无法从服务器获取共享列表”。
以下是兄弟笔记本电脑上 smbtree 的输出:
JAVED-HOME
\\HOME-SERVER Home-Server
\\HOME-SERVER\ML-2160-Series Samsung ML-2160 Series
\\HOME-SERVER\IPC$ IPC Service (Home-Server)
\\HOME-SERVER\TOSHIBA
\\HOME-SERVER\saad Saad's Personal Storage
\\HOME-SERVER\data Central Storage Area
\\HOME-SERVER\dvd-rw Home-Server Asus DVD-RW
\\HOME-SERVER\print$ Printer Drivers
\\DELL-XPS-L502X Saad's Laptop
\\DELL-XPS-L502X\Public
\\DELL-XPS-L502X\samsung-ml-2165-laserjet Samsung ML-2165 Laserjet (hplj-pcl5e)
\\DELL-XPS-L502X\IPC$ IPC Service (Saad's Laptop)
\\DELL-XPS-L502X\print$ Printer Driver`
以下是他的笔记本电脑上 testparm 的输出:
[global]
workgroup = JAVED-HOME
server string = Saad's Laptop
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
username map = /etc/samba/smbusers
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
socket options = TCP_NODELAY SO_RCVBUF=262144 SO_SNDBUF=262144 IPTOS_LOWDELAY SO_KEEPALIVE
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
idmap config * : backend = tdb
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
print ok = Yes
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
我没有运行任何域服务器,所有计算机都是用户并且属于同一工作组的一部分。