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? Commented Aug 2, 2019 at 6:46
  • Yes, we tried with SMB2 and it worked. Apologies for late update. Commented Aug 9, 2019 at 6:33
  • Ok, nice, I'll add this as an answer then so you may accept it. Commented Aug 9, 2019 at 7:20

1 Answer 1

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.

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

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.