remote move in sftp mode fails

Advertisement

sopko
Guest

remote move in sftp mode fails

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")

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

Re: remote move in sftp mode fails

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.

Reply with quote

Guest

Re: remote move in sftp mode fails

martin 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.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

Re: remote move in sftp mode fails

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.

Reply with quote

Advertisement

You can post new topics in this forum