桑巴地址是由
//<server>/<service>
知道BIOS名称<server> ,我如何才能远程(除服务器之外的其他机器)了解<service>字段?
从Linux主机上,我将安装smbclient软件包并使用/usr/bin/smbclient列出共享
从man smbclient
-L|--list This option allows you to look at what services are available on a server. You use it as smbclient -L host and a list should appear. The -I option may be useful if your NetBIOS names don't match your TCP/IP DNS host names or if you are trying to reach a host on another network. $ /usr/bin/smbclient --help | grep -A1 list -L, --list=HOST Get a list of shares available on a host $
某些共享可能需要authentication。
例:
$ /usr/bin/smbclient --user 'MYDOMAIN\account' --list 192.168.123.20 Enter MYDOMAIN\account's password: Domain=[MYDOMAIN] OS=[Windows 7 Enterprise 7601 Service Pack 1] Server=[Windows 7 Enterprise 6.1] Sharename Type Comment --------- ---- ------- ADMIN$ Disk Remote Admin C$ Disk Default share IPC$ IPC Remote IPC print$ Disk Printer Drivers NetBIOS over TCP disabled -- no workgroup available $
这将是在Sambaconfiguration中定义的任何东西。
假设它是一个Linux服务器,运行
testparm
得到一个服务的转储。
如果服务已configuration为可发现,则可以导航到//服务器并查看服务列表。