Topic "remote move in sftp mode fails"

Author Message
sopko

Guest


I searched and could not find the answer to this.
I tried changing the drag&drop transfer options also.

If I configure the client to use sftp I get an error when trying to
move a file from a remote folder to another folder, (on the same remote
system), either by drag and drop or right clicking on the file and doing
a "Move to ...". If I use scp mode it works. Renaming a file on the
remote server works in sftp mode. Is this a limitation of my servers
sftp version or is this not implemented in sftp?

My server is running SFTP protocol version 3, the latest that comes with
Red Hat Enterprise 3 linux.

Log output:

Moving file "fem" to "/afs/cs.unc.edu/home/sopko/tmp/larkx/fem".
Type: SSH_FXP_RENAME, Size: 87, Number: 10002
Type: SSH_FXP_STATUS, Size: 24, Number: 10002
Status/error code: 4, Message: 10002, Server: Failure, Language:
Asking user:
Error moving file 'fem' to '/afs/cs.unc.edu/home/sopko/tmp/larkx/fem'. ("General failure (server should provide error description).
Error code: 4
Error message from server: Failure
Request code: 18")
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
Moving remote file to other directory is supported with SFTP. I do not know why it does not work for you. Possible reasons are:
  • You do not have sufficient permissions to do this.
  • Most SFTP servers does allow moving only within one filesystem. So you cannot move file to another filesystem.

_________________
Martin Prikryl
Guest




prikryl wrote:
Moving remote file to other directory is supported with SFTP. I do not know why it does not work for you. Possible reasons are:
  • You do not have sufficient permissions to do this.
  • Most SFTP servers does allow moving only within one filesystem. So you cannot move file to another filesystem.


We use the AFS filesystem, this has something to do with the problem, I can move remote files around in regular unix filesystem space but not AFS space. In AFS file space you need and afs token for permissions, the remote sftp move must be launching a process that does not have a token to do this. I can create and rename remote files as well as copy from the local system to the remote system in AFS file space
using sftp mode.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
Quote:
We use the AFS filesystem, this has something to do with the problem, I can move remote files around in regular unix filesystem space but not AFS space. In AFS file space you need and afs token for permissions, the remote sftp move must be launching a process that does not have a token to do this. I can create and rename remote files as well as copy from the local system to the remote system in AFS file space
using sftp mode.

And can you assign the token to some application/binary?

BTW, I believe that SFTP server does not execute external "move" process. It does it itself.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License