问题原文
原帖链接 · user123456 · CC BY-SA 3.0
The samba address is given by
//<server>/<service>
Knowing the BIOS name <server>, how do I get to know the <service> field remotely (other machine than the server)?
已采纳解答
原帖链接 · StandardEyre · CC BY-SA 3.0
From a Linux host, I would install the smbclient package and use /usr/bin/smbclient to list the shares
from 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
$
Some shares may require authentication.
Example:
$ /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
$
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
