Create a file that contains authentication details. In my test case I had no domain to bother with so just added the username and password fields.
I also made a point of ensuring that the file permissions for this file were set to the owner having access only. Ie: rw- --- --- or ( 600 )
username = backupuser
password = Pa$$w0rd
In your script or whatever the way to put a file onto the windows share is like this:
~> smbclient -A smbclient_authentication.txt ////192.168.0.96//data -c "put myBackupFile.tar.gz"That's about it. Piece of cake. When I test this on an SELINUX environment, I am sure this tutorial will be extended somewhat!