Apps :: smbclient get



I've got dsl on one machine, and windows 2000 on another, both on a network. I can connect to the win2000, via smbclient \\machinename\sharename -U username. I can move around via the command line. Coping files from win2000 to dsl fails, using get. I enter get filename.ext, result is "error opening local file filename.ext". If I enter get *.ext, result is "nt_status_object_name_invalid open remote file \temp\*.ext".

I know linux can't write to a ntfs partition, but it can read/copy from. What am I doing wrong?

Quote
I enter get filename.ext, result is "error opening local file filename.ext"
Looks like this is a local problem.. ie. on your DSL machine.  Make sure you have write permissions on wherever you are saving the file to (and enough space).

Quote
If I enter get *.ext, result is "nt_status_object_name_invalid open remote file \temp\*.ext".
Doesn't look like it accepts wildcards, so it attemps to find that file, which doesn't exist.

Quote
I know linux can't write to a ntfs partition, but it can read/copy from. What am I doing wrong?
This doesn't have to do with your problem, unless you're trying to save the file to a ntfs partition.  Note that your statement in general is wrong - linux can write to ntfs - but DSL by default only has read capability.

Hi,

Thanks for the reply. Please forgive my ignorance. I'm a Linux newbie. The only area I'm having a tough time figuring out is network sharing. Once I get smbclient figured out, then I'll work on smbserver.

I just assumed that "get" would copy the file to my dsl home ramdisk folder. If I just type "get filename.ext", where is dsl attempting to copy it? If I want "filename.ext" copied into the dsl home ramdisk folder, what would the command be?

I suppose you could "cd ~" before running smbclient or try "get file.ext <save_to_this>"

But personally I prefer smbmount via lineighborhood.

Hi,

Thanks for the reply. I took your suggestion and used samba server, and mounted the share. With Midnight Commander I can access all of the win2000 shared folders. Next question. How do I get the win200 to access all the dsl shared folders? I don't see an obvious way to change the dsl workgroup name, so win2000 can see it in "My Network Places".

Next Page...
original here.