We are trying to use SSH to connect from Windows to an Oracle Linux Server v8.4 and run a command line program that creates files on a Windows network (NTFS). The problem is that it fails on creating temp files in the network folder.
When I open an ssh session and attempt to copy files using cp from the command line it seems that it can't create and write to a file on the network in a single operation. The first attempt gives me the error "cannot create regular file.. Operation not permitted" and creates an empty file. The second attempt, with the empty file still in place, succeeds in writing the file contents. If I create the empty file before hand in Windows then it can write to it on the first attempt.
If I output the process I am debugging to a local folder it succeeds, I can then copy the results to the network if I copy the files twice, once creating empty files and then succeeding on the second copy.
The permissions on the network folder (ls -dl) are drwxrwxr-x. 2 1073 1140
Any clues as to how to narrow down where the problem might lie in copying or writing files to the network?