[1776014 views]

[]

Odi's astoundingly incomplete notes

New entries | Code

Copy 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' \
-U username -c 'put myfile.txt'
Or if you like it more secure, use an auth file:
cat smb.auth
username = marvin
password = valium
domain = galaxy
smbclient '\\host\share' -D 'the/directory' \
-A smb.auth -c 'put myfile.txt'


posted on 2006-09-15 09:59 UTC in Code | 0 comments | permalink