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)

3
  • Sometimes this is caused by a SMB protocol mismatch. Could you add -m SMB3 to the smbclient command line and retry?
    – Edward
    Aug 2, 2019 at 6:46
  • Yes, we tried with SMB2 and it worked. Apologies for late update.
    – Janki Vyas
    Aug 9, 2019 at 6:33
  • Ok, nice, I'll add this as an answer then so you may accept it.
    – Edward
    Aug 9, 2019 at 7:20

1 Answer 1

2

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.

2
  • didn't work for me. Connection to a QNAP SMB3 service
    – theking2
    Jun 3 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 5 at 7:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.