View Full Version : Copying files on smbclient
ucetin
2005-03-03, 05:55 PM CST
I connected to a network drive through smbclient. I want to copy over some files, but donno how. cp and copy are giving me 'command not found' error. Thx.
benca1
2005-03-03, 06:21 PM CST
I connected to a network drive through smbclient. I want to copy over some files, but donno how. cp and copy are giving me 'command not found' error. Thx.
Use std FTP commands; 'get' to retrieve and 'put' to upload.
You can enter a '?' for a list of available commands. It's a pretty cool utility. Personally, I would just put that share into your fstab with the optional command. That way you can just issue a 'mount <sharename>' command and have a network share behave as though it was local.
ucetin
2005-03-04, 10:06 AM CST
I use mput to copy a file from linux box to the Windows server. I don't get any errors, but it doesn't copy the file either. Any ideas? Also, how do I mount a Windows share drive as a local drive? Thx.
benca1
2005-03-04, 10:28 AM CST
I use mput to copy a file from linux box to the Windows server. I don't get any errors, but it doesn't copy the file either. Any ideas? Also, how do I mount a Windows share drive as a local drive? Thx.
I don't know why your files aren't showing up. There can be a myriad of reasons, and you're dealing with 2 operating systems. I would google for a similar issue someone has had. I would assume if you didn't have write permission you would see an error, but dbl check and make sure that whoever you're logging in as, you do have write permission.
You mount a windows share like so:
mount -t smbfs -o <username>,<passwd> //hostname/sharename /mnt/windows
Of course you can mount it anywhere, I just mount windows stuff to /mnt/windows. I don't use a password for my XP box, so I omit the '-o' part with the login info.
If you put it into fstab you would just:
//winmachine/testshare /windows/winshare smbfs
auto,gid=users,fmask=0664,dmask=0775,iocharset=iso 8859-15 0 0
Here's some good info:
http://portal.suse.com/sdb/en/2003/03/fhassel_smb.html
ucetin
2005-03-04, 11:15 AM CST
Thanks. mount -t smbfs didn't work for me. I got it working by using mount -t cifs.
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.