[ILUG] Samba Client Setup

Michael Conry michael.conry at ucd.ie
Mon Jul 30 13:56:39 IST 2001


Pretty much everything you do as a samba client is done through the program
smbclient (funnyily enough :-)

The smbprint script included with samba is just a little wrapper around the
smbclient program, and if you look at the last line you see the typical
form of a smbclient invocation (at least for a printer):

smbclient "\\\\$server\\$service" $password -U $guser -N -P >> $logfile

To see the list of available shares on a server, try:

smbclient -L \\\\$server -U $user

then to connect to a service (e.g. a shared directory)

smbclient \\\\$server\\$sharename -U $user

And you end up in an ftp-like environment where you can move, copy files
and so forth.

A nice-ish front end is tksmb (at least it works), run it with TkSmb if you
have it installed (note case)

Also interesting is smb2www (it is in Debian, or get it from net) which
allows you to navigate your smb shares via a web-front end. I found it
awkward, and the author's documentation is full of caveats that security is
your responsibility, but i liked the idea.

m




More information about the ILUG mailing list