smbclient on OS-X

find your public SMB shares with findsmb

findsmb
*=DMB
+=LMB
IP ADDR NETBIOS NAME WORKGROUP/OS/VERSION
———————————————————————
10.0.0.4 NAS +[CAINMANOR] [Unix] [Samba 3.0.22]


Now connect using smbclient.

smbclient -L 10.0.0.3 -U Administrator
Password:
Domain=[WINSERV01] OS=[Windows Server 2003 3790 Service Pack 2] Server=[Windows Server 2003 5.2]

Sharename Type Comment
——— —- ——-
C$ Disk Default share
WsusContent Disk A network share to be used by Local Publishing to place published conten
IPC$ IPC Remote IPC
ADMIN$ Disk Remote Admin
D$ Disk Default share
T$ Disk Default share
WSUSTemp Disk A network share used by Local Publishing from a Remote WSUS Console Inst
E$ Disk Default share
TV Disk Television
session request to 10.0.0.3 failed (Called name not present)
session request to 10 failed (Called name not present)
Domain=[WINSERV01] OS=[Windows Server 2003 3790 Service Pack 2] Server=[Windows Server 2003 5.2]

Server Comment
——— ——-

Workgroup Master
——— ——-

Now connect using the smbclient. Don’t skimp on the backslashes – they’re free

smbclient \\\\10.0.0.3\\TV -U Administrator
Password:
Domain=[WINSERV01] OS=[Windows Server 2003 3790 Service Pack 2] Server=[Windows Server 2003 5.2]
smb: \>

Make the mount point

mkdir /Volumes/TV

Now Mount the share

mount_smbfs -W workgroup //Administrator@10.0.0.3/TV /Volumes/TV

Password: