Using smbclient to view public cifs shares
May 7, 2008 Leave a comment
Easy? yes. Trivial? yes. But I always have to look up the syntax.
smbclient -L //localhost Password: Domain=[MIDEARTH] OS=[Unix] Server=[Samba 3.0.26a] Sharename Type Comment --------- ---- ------- IPC$ IPC IPC Service (Samba 3.0.26a) data Disk Data Domain=[MIDEARTH] OS=[Unix] Server=[Samba 3.0.26a] Server Comment --------- ------- HOBBIT Samba 3.0.26a Workgroup Master --------- ------- MIDEARTH HOBBIT</pre>
Just leave the password empty to do it as guest. For some reasone I tend to always mix up smbclient and smbmount (depricated, usually mount.cifs now).