Skip to content

Instantly share code, notes, and snippets.

@lemenkov
Created June 20, 2013 09:53
Show Gist options
  • Save lemenkov/5821575 to your computer and use it in GitHub Desktop.
Save lemenkov/5821575 to your computer and use it in GitHub Desktop.
How to mount SAMBA resource w/o password and w/o knowing SAMBA shares' names
$ sudo yum install cifs-utils samba-client
$ smbclient -L 192.168.100.1
Enter petro's password: <press enter for empty password>
Domain=[TIHON] OS=[Windows 7 Ultimate 7601 Service Pack 1] Server=[Windows 7 Ultimate 6.1]
Sharename Type Comment
--------- ---- -------
ADMIN$ Disk Удаленный Admin
Bin.Win32 Disk
C$ Disk Стандартный общий ресурс
D$ Disk Стандартный общий ресурс
Distribs.!!! Disk
Download Disk
HP_P1102 Printer HP LaserJet Professional P1102
IPC$ IPC Удаленный IPC
Mp3 Disk
print$ Disk Драйверы принтеров
Connection to 192.168.100.1 failed (Error NT_STATUS_RESOURCE_NAME_NOT_FOUND)
NetBIOS over TCP disabled -- no workgroup available
$ sudo mount //192.168.100.1/Distribs.\!\!\!/ /mnt -t cifs -o sec=none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment