smbclient

What is smbclient?

smbclient is samba client with an "ftp like" interface. It is a useful tool to test connectivity to a Windows/samba share. It can be used to transfer files, or to look at share names. In addition, it has a nifty ability to 'tar' (backup) and restore files from a server to a client and visa versa.

How to use smbclient?

##### list all available shares of a specific host
smbclient -L 10.10.66.116

##### connect to an smb server - share = 'anonymous'
smbclient //10.10.66.116/anonymous

##### login to an smbclient with specific username/password and connect to the share 'anonymous'
smbclient //10.10.66.116/anonymous -U testUsername -P testPassword

##### login without using an username or password and connect to the share 'anonymous'
smbclient //10.10.66.116/anonymous -N 

References

Last updated