3

We are trying to copy files from linux system to windows and vice versa using smbclient. The files are successfully copied using mget from Windows to Linux, however, we are getting below error while moving files from Linux to Windows.The files are created at the destination with 0 Kb i.e. no data. Can somebody please help?

cli_push returned NT_STATUS_INVALID_PARAMETER

putting file as (25960.3 kb/s) (average 25960.9 kb/s)

Janki Vyas
  • 43
  • 1
  • 4

1 Answers1

3

This may be caused by an SMB protocol mismatch. You can specify the SMB protocol version with the -m option to the smbclient command, e.g. -m SMB3.

Edward
  • 2,364
  • 3
  • 16
  • 26
  • didn't work for me. Connection to a QNAP SMB3 service – theking2 Jun 03 '22 at 20:54
  • @theking2 please post smbclient debug information (`-d` switch) and check for clues in the Samba logs on the QNAP device. Try incrementally increasing the debug log verbosity to catch the error. – Edward Jun 05 '22 at 07:21