Copy files to samba share Ubuntu 14.04

I am trying to use mv or cp rsync to copy folders to a samba share. I can manually copy the folders to the share, but can not seem to access it using command line. Thank you :).

smbclient //path/to/cifs/share <password>  -W <domain> -u <user>
WARNING: The "syslog" option is deprecated
Domain=[****] OS=[Unix] Server=[****]
mv -v /home/cmccabe/ToDo /path/to/cifs/share
mv: cannot move �/home/cmccabe/ToDo� to �/path/to/cifs/share�: No such file or directory
cp home/cmccabe/ToDo /path/to/cifs/share
 cp: cannot create regular file, No such file or directory

smbclient is a network utility. /path/to/cifs/share does not exist on your system, hence can't be found by cp, which is not.

If you want the file share to be part of your filesystem tree, you have to mount it.

I think it goes something like:

mount.cifs //path/to/cifs/folder /mnt/localfolder -o username=whatever,password=pass

See man mount.cifs

1 Like

Look into smbmount .

1 Like