Topic "Renaming files on mounted remote samba share"

Author Message
leeph

Guest


Good afternoon!

I have a Windows share, mounted within my home directory (for example /home/leeph/windowsbox).

I am owner of all the files within the mounted share, and I have rwx permissions on those files. I can delete and create files within the mounted samba share, however I CANNOT use the 'rename' in WinSCP - all I get is...

"Permission denied.
Error code: 3
Error message from server: Permission denied (?)
Request code: 18"

Yet if I login using my SSH client as the same user, I can quite happily 'mv file file.bak' for example.

The rename function does work on files locally stored in my home directory, just not in the samba mounted share.

Any ideas??

leeph
oper@quakenet
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
  • Try other SFTP client to know if it is problem of WinSCP or your server. Any command line client would be enough (like OpenSSH sftp of psftp from Putty package).
  • Post a log file.

_________________
Martin Prikryl
Guest




prikryl wrote:
  • Try other SFTP client to know if it is problem of WinSCP or your server. Any command line client would be enough (like OpenSSH sftp of psftp from Putty package).
  • Post a log file.


Hi prikryl - the log file doesn't give much more useful info, but here goes:

Renaming file "DEFAULT.CFG" to "DEFAULT.CFG.BAK".
Type: SSH_FXP_RENAME, Size: 81, Number: 19474
Type: SSH_FXP_STATUS, Size: 34, Number: 19474
Status/error code: 3, Message: 19474, Server: Permission denied, Language: ?
Asking user:
Error renaming file 'DEFAULT.CFG' to 'DEFAULT.CFG.BAK'. ("Permission denied.
Error code: 3
Error message from server: Permission denied (?)
Request code: 18")
Listing directory "/samba/meteor/c/temp".




I tried psftp and the same error message is displayed, so I guess technically not a problem with WinSCP.

However, switching to the SCP protocol instead of SFTP DOES allow me to rename the file from within WinSCP- strange!!

Do you know why this is?

leeph
oper@quakenet
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
Quote:
However, switching to the SCP protocol instead of SFTP DOES allow me to rename the file from within WinSCP- strange!!

Do you know why this is?

There can be many reasons, hard to tell. If you can create a test account for me on your server, I may try to debug this.
_________________
Martin Prikryl
Guest




I have a similar problem: i can upload files up to 100kb exact and files bigger give me the same error message.
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