Odi's astoundingly incomplete notes
New entries | CodeCopy to an SMB share
Here is how to copy a file from a Linux machine to a remote Windows share without mounting. It uses the smbclient:
smbclient '\\host\share' password -D 'the/directory' \Or if you like it more secure, use an auth file:
-U username -c 'put myfile.txt'
cat smb.auth username = marvin password = valium domain = galaxy smbclient '\\host\share' -D 'the/directory' \
-A smb.auth -c 'put myfile.txt'
Add comment