2.10 Montage Samba - NetBios/CIFS
Aller à la navigation
Aller à la recherche
Monter un partage
# smbmount //PC1/C_PC1 /mnt/diskc_pc1 Password : valider.
Le démonter
# smbumount /mnt/diskc_pc1
Lister si des machines partage des repertoires dans un sous-réseau
# nmblookup -A 192.168.1.2
Looking up status of 192.168.1.2 USER-HP <20> - B <ACTIVE> USER-HP <00> - B <ACTIVE> WORKGROUP <00> - <GROUP> B <ACTIVE> WORKGROUP <1e> - <GROUP> B <ACTIVE> MAC Address = 10-1F-74-1E-C6-EB
Afficher les partages
# smbclient -L USER-HP -I 192.168.1.2 -N Domain=[USER-HP] OS=[Windows 7 Home Premium 7601 Service Pack 1] Server=[Windows 7 Home Premium 6.1]
Sharename Type Comment --------- ---- ------- ADMIN$ Disk Administration à distance C$ Disk Partage par défaut IPC$ IPC IPC distant Tools Disk Users Disk session request to 192.168.1.2 failed (Called name not present) session request to 192 failed (Called name not present) session request to *SMBSERVER failed (Called name not present) NetBIOS over TCP disabled -- no workgroup available
Accéder au partage
# smbclient //USER-HP/Tools -I 192.168.1.2 -N Domain=[USER-HP] OS=[Windows 7 Home Premium 7601 Service Pack 1] Server=[Windows 7 Home Premium 6.1] smb: \> ls . D 0 Fri May 11 11:42:27 2012 .. D 0 Fri May 11 11:42:27 2012 Apache_OpenOffice_incubating_3.4.0_Win_x86_install_fr.exe A 125646514 Fri May 11 11:42:28 2012 Firefox Setup 11.0.exe A 16287888 Fri Apr 29 18:16:16 2011 Havij1.15Free.rar A 2887348 Wed May 9 23:14:21 2012 HP-DM1Z D 0 Mon Apr 2 21:19:17 2012 Installation_Messenger.exe A 2485032 Tue Apr 3 21:39:48 2012 Install_Win7_7050_01162012 D 0 Mon Apr 2 21:00:41 2012 Install_Win7_7050_01162012.zip A 5883681 Mon Apr 2 20:58:58 2012 MaConfig_5_2_2_0.exe A 3550496 Mon Apr 2 20:49:49 2012 MotioninJoy_060005_amd64_signed.zip A 2465497 Mon Mar 19 18:24:37 2012 SixaxisPairToolSetup-0.2.3.exe A 10743461 Mon Mar 19 18:27:33 2012 SteamInstall_French.msi A 8532992 Fri Mar 23 19:39:45 2012 winrar_winrar_4.11_32_bits_francais_9632.exe A 1506653 Wed May 9 23:16:01 2012
58875 blocks of size 4194304. 48275 blocks available
smb: \>
Télécharger un fichier
smb: \> get MaConfig_5_2_2_0.exe getting file \MaConfig_5_2_2_0.exe of size 3550496 as MaConfig_5_2_2_0.exe (9525,5 KiloBytes/sec) (average 9525,5 KiloBytes/sec)