smbclint -L //想访问的机的主机名或IP地址
这能看到那台机共享的东东。
例如:
[code:1]
[root@TFW-RFL40 root]# smbclient -L //TFW-MSW98-A
unrecognized character set GB2312
load_unicode_map: filename /usr/share/samba/codepages/unicode_map.GB2312 does not exist.
added interface ip=192.168.1.25 bcast=192.168.1.255 nmask=255.255.255.0
added interface ip=192.168.168.1 bcast=192.168.168.255 nmask=255.255.255.0
added interface ip=192.168.218.1 bcast=192.168.218.255 nmask=255.255.255.0
Got a positive name query response from 192.168.1.20 ( 192.168.1.20 )
Password:
Sharename Type Comment
--------- ---- -------
F Disk
G Disk
MP3 Disk
HBNF_RW Disk
MSW98SE Disk
IPC$ IPC 远程进程间通信
Server Comment
--------- -------
TFW-MSW98-A M$-Win98$e for game
TFW-RFL40-B Samba 2.2.8
Workgroup Master
--------- -------
HOME TFW-MSW98-A
[root@TFW-RFL40 root]#
[/code:1]
mount //想访问的机的主机名或IP地址/它的一个共享目录 你机器上的一个空目录
把那个共享挂在你机器的文件系统里。
例如:
[code:1]
[root@TFW-RFL40 root]# mount //TFW-MSW98-A/MP3 /mnt/lan/host1
unrecognized character set GB2312
load_unicode_map: filename /usr/share/samba/codepages/unicode_map.GB2312 does not exist.
Password:
[root@TFW-RFL40 root]#
[/code:1]