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
Written by Ferry Boender
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Linux
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#