Article Title: Access to Windows File Sharing in linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
[Root @ localhost ~] # Rpm-q samba-client
Samba-client-3.0.28-0.el5.8
[Root @ localhost ~] # Smbclient-L 192.168.0.7-U Administrator
Password:
Domain = [BBC8D75B6BD34FE] OS = [Windows 5.1] Server = [Windows 2000 LAN Manager]
Sharename Type Comment
--------------------
E $ Disk shared by default
IPC $ IPC remote IPC
D $ Disk shared by default
Print $ Disk Printer Driver
SharedDocs Disk
ZJDocument Disk
Temporary File exchange Disk
HPLaserJ Printer HP LaserJet 3200 Series PCL
Public document Disk
Local Disk (G) Disk
Vs2008 Disk
F $ Disk shared by default
ADMIN $ Disk Remote Management
C $ Disk is shared by default.
Soft Disk
Session request to 192.168.0.7 failed (Called name not present)
Session request to 192 failed (Called name not present)
Domain = [BBC8D75B6BD34FE] OS = [Windows 5.1] Server = [Windows 2000 LAN Manager]
Server Comment
----------------
Workgroup Master
----------------
[Root @ localhost ~] # Ls
Anaconda-ks.cfg install. log install. log. syslog mbox
[Root @ localhost ~] # Smbclient // 192.168.0.7/soft-U Administrator
Password:
Domain = [BBC8D75B6BD34FE] OS = [Windows 5.1] Server = [Windows 2000 LAN Manager]
Smb: \> ls
. D 0 Tue Jun 23 02:26:16 2009
.. D 0 Tue Jun 23 02:26:16 2009
Adobe_Reader_9_1.exe A 44910072 Wed May 27 13:43:46 2009
Cento2s5VM D 0 Wed Feb 4 09:14:29 2009
Cl%3%1%.1.doc A 80896 Tue Sep 4 20:55:56 2007
Convert all SWFs to JPG. vbs A 1045 Mon May 4 16:54:16 2009
Data D 0 Mon May 18 19:37:21 2009
Driver D 0 Fri Aug 29 00:27:16 2008
Ex070117.loga 1698385454 Thu Jan 18 08:00:02 2007
Ex070118.logs A 1680195444 Fri Jan 19 08:00:02 2007
Ex070119.logs A 1674275535 Sat Jan 20 08:00:02 2007
MySQL5.1 Chinese manual. chm A 4648580 Tue Jul 1 16:17:02 2008
Purecodec20090126..exe A 68565499 Tue Apr 28 15:40:57 2009
System D 0 Tue Jun 9 02:33:40 2009
T41 D 0 Sun Apr 6 11:57:00 2008
TrueImageES-v9.1 D 0 Tue Jun 23 02:25:42 2009
Vb60_full D 0 Tue Apr 14 13:37:45 2009
Zojiaoxpsp2.ISO A 2437634048 Fri Aug 3 18:17:25 2007
Create document txt a 94 Mon Dec 31 18:21:07 2007
System Backup D 0 Mon May 18 19:40:18 2009
44994 blocks of size 4194304. 9890 blocks available
Smb: \> get MySQL5.1 Chinese manual. chm/mnt/MySQL5.1.chm
Getting file \ MySQL5.1 Chinese manual. chm of size 4648580 as/mnt/MySQL5.1.chm (7681.3 kb/s) (average 7681.3 kb/s)
Smb: \> q
[Root @ localhost ~] # Cd/mnt
[Root @ localhost mnt] # ls
MySQL5.1.chm
[Root @ localhost mnt] #
[Root @ localhost/] # mount-t cifs-o username = zhangyuan, password = zhangyuan // 192.168.0.7/soft/mnt
[Root @ localhost/] # cd/mnt
[Root @ localhost mnt] # ls
Adobe_Reader_9_1.exe cento2s5VM
MySQL5.1 Chinese manual. General chm applications
Clipv32.1612.16.1.doc PureCodec20090126.exe Technology Development
Convert all SWFs to JPG. vbs system broadcaster installation tutorial linux.doc
Data t41 create document txt
Driver TrueImageES-v9.1 System Backup
Ex070117.log vb60_full
Ex070118.log zojiaoxpsp2.ISO
[Root @ localhost mnt] # ll