0

I have been using smbclient to grab files from a windows file system to an ubuntu based computer. It was working up until a few weeks ago. From ubuntu I do: smbclient -A ./credentialsFile //IP/path/to/folder -c at that point I am in the directory. I then do mask "" and mget file.txt it responds with get file file.txt? I type y it then states failed to open \IP\path\to\folder\file.txt NT_STATUS_OBJECT_PATH_NOT_FOUND

I can manually use get to grab individual files. If I try to follow the same procedure to just grab the directory (mget folder (after recurse ON), it doesnt error, but also doesnt download any files.

this is the overall command that used to work: smbclient -A ~/.credentials //IP/path/to/ -c 'mask ""; recurse ON; prompt OFF; mget folder;' . Now it doesnt error but it also does nothing.

How can it know what file I am talking about yet be unable to find it?

user1402154
  • 101
  • 2
  • if I instead do `smbclient -A ~/.credentials //IP/path/to/ -c 'mask ""; recurse ON; prompt OFF; cd folder; mget *;' ` it goes through each and every file in that folder telling me that it could not find that file. – user1402154 Jan 19 '22 at 22:25
  • Have you tried `smbget` ? See [this page](https://superuser.com/questions/562702/copy-file-from-windows-to-linux). I myself would probably `mount` the share, `rsync`, `umount` the share.. but that is just me. – Señor CMasMas Jan 20 '22 at 05:27
  • smbget worked! thanks – user1402154 Jan 20 '22 at 14:38
  • Totally! :) Glad to help. I am going to mark this as a duplicate and let the people with magic powers clean it up. – Señor CMasMas Jan 20 '22 at 14:58
  • 1
    Does this answer your question? [copy file from windows to Linux](https://superuser.com/questions/562702/copy-file-from-windows-to-linux) – Señor CMasMas Jan 20 '22 at 14:58

0 Answers0