Last Updated: February 25, 2016
·
15.38K
· fboender

Store credentials in file for use with smbclient

This was actually somewhat hard to find with Google.

If you want to store credentials for smbclient (a commandline Samba/Windows networking client) instead of putting them on the commandline, create a file:

$ cat ~/.smbclient.conf
username=fboender
password=s3cr3t

Then call smbclient with:

$ smbclient -A ~/.smbclient.conf //192.168.10.10/MyShare