Topic "no read permission = can't upload"

Author Message
bigfoot.xxl

Guest


I need to upload to a ftp site where there is no read permission but winscp is aborting the upload (I tested with read permission ON and it worked just fine but I cant leave it like that):
< 2014-07-23 13:58:41.666 227 Entering Passive Mode (10,253,1,178,19,94).
> 2014-07-23 13:58:41.666 LIST
< 2014-07-23 13:58:41.682 125 Data connection already open; Transfer starting.
. 2014-07-23 13:58:41.682 <Empty directory listing>
< 2014-07-23 13:58:41.688 550 .: Access is denied.
. 2014-07-23 13:58:41.688 Copying files to remote side failed.
* 2014-07-23 13:58:41.688 (ExtException) **Copying files to remote side failed.**
* 2014-07-23 13:58:41.688 .: Access is denied.

I assume the LIST command is the problem here... can I disable it? (windows ftp.exe does this just fine but has other problems) Here is my current command:

WinSCP.exe /command "open ftp://anonymous:test@192.168.1.178/" "put -delete c:\temp\*.txt /" "exit"
Advertisements
bigfoot.xxl

Guest


P.S. I use 554 on win 8.1. Could somebody answer please?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
I have tried this against various servers, but was not able to reproduce this. Yes, the LIST (or MLSD) is used, but there's no problem even if the server responds with 550. What FTP server are you connecting to? Can you attach a complete session log file?
bigfoot.xxl

Guest


The first in the logs is an WinXP machine and the second server is Win 2003 R2 SP2 - no difference with 5.1.7 nor 5.5.4.
winscp5.1.7.log (13.91 KB) Private file

Description: (none)

winscp5.5.4.log (10.97 KB) Private file

Description: (none)

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Thanks for the log. I do not have 2003 to test it myself. I've tried 2008 R2 IIS and it works fine.

The difference seems to be that while 2008 rejects listing straightaways, 2003 seems to start data connection for the listing and fails only after that.

Code:
> 2014-08-06 12:27:42.348 LIST
< 2014-08-06 12:27:42.359 125 Data connection already open; Transfer starting.
. 2014-08-06 12:27:42.360 <Empty directory listing>
< 2014-08-06 12:27:42.567 550 .: Access is denied.
. 2014-08-06 12:27:42.567 Copying files to remote side failed.


VS.

Code:
> 2014-08-08 12:27:20.088 LIST
. 2014-08-08 12:27:20.089 <Empty directory listing>
< 2014-08-08 12:27:20.089 550 Access is denied.
...
> 2014-08-08 12:27:20.094 STOR RaveBE77.ini
< 2014-08-08 12:27:20.095 150 Opening BINARY mode data connection.
< 2014-08-08 12:27:20.095 226 Transfer complete.
. 2014-08-08 12:27:20.095 Upload successful


But that's difficult for me to verify without having server to test against. Any change to get a test account on your server?
bigfoot.xxl

Guest


Sure, I would need your external IP but I don't want to put my email here, so how do I contact you?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
bigfoot.xxl wrote:
Sure, I would need your external IP but I don't want to put my email here, so how do I contact you?

You will find my address (if you log in) in my forum profile.
_________________
Martin Prikryl
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
This issue has been added to the tracker:
https://winscp.net/tracker/show_bug.cgi?id=1249
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