smbclient getForum: Apps Topic: smbclient get started by: mssa426 Posted by mssa426 on April 14 2007,22:46
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? Posted by ^thehatsrule^ on April 15 2007,01:43
Posted by mssa426 on April 15 2007,08:43
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? Posted by ^thehatsrule^ on April 15 2007,18:19
I suppose you could "cd ~" before running smbclient or try "get file.ext <save_to_this>"But personally I prefer smbmount via lineighborhood. Posted by mssa426 on April 16 2007,19:38
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". Posted by ^thehatsrule^ on April 17 2007,03:08
hm? I didn't suggest to use smbd, you just did that yourself :PI think the hostname by default is "box" ... you can change it with a cheatcode. You could also try connecting by ip. |