05-01-2014 07:03 AM
I am running OpenVMS v7.3-2 on an AlphaServer ES40 6/667 running TCP/IP Services V5.4 ECO 7.
When I run SFTP in batch mode to rename a bunch of files - sometimes a rename will fail with the "%TCPIP$_SSH_FX_PERM_DENIED, insufficient privileges to perform the operation" message. This seems to happen randomly in one out of 8 to 10 batch runs. I may have 10 files to rename and it fill fail on the 7th one, but the rest will complete. In the attached log, the batch stream renames 4 files, the 3rd one fails, but 1,2 & 4 complete. I have run the SFTP with the "-D99" debug mode and attached the log.
I have tried the following images with the same results:
Does anybody have an idea as to why this happens?
Army & Air Force Exchange Service
05-01-2014 08:53 PM
I would also like to see the file protection before and after. We know the initiating system is OpenVMS, but what's the target running?
As a 1+ to Steven's suggestion, I'm not sure if the new feature of CREATE/FDL was ever documented, you can give it an FDL string directly, so
$ create /fdl="RECORD; FORMAT STREAM_LF" 'sftpbfile' $! $ open /read /write sftp_bfile 'sftpbfile'
I think this goes back as far as V7.3.
I'd also like to see the contents of the sftp batch file which is generating the error (rather than having to reverse engineer it from the remainder of the log). The D99 stuff is pretty useless, just extra noise.