Permission Issue - On download - No error being thrown

Advertisement

cslater
Joined:
Posts:
1
Location:
United States

Permission Issue - On download - No error being thrown

Version: 4.3.2 (Build 1201)
OS: Windows 7, Windows 2008 R2
Usage: Command line and scripting
Type: SFTP sites

I only have read only and execute permissions to winscp installed directory. I can connect to site and download file. 'lls' command shows file successfully downloaded but the file does not really exist on file system.

I've exited out and started winscp again. The 'lls' command still shows that the file is still there.

I often use get with -delete option. Winscp believes that it downloaded the file and goes ahead and deletes the file on remote server but the file was never actually stored on the filesystem.

This stared when my account was removed from the Admin group on the machine. Everything works correctly when I run from a directory that I have Read, Execute, and Modify permissions.

Thanks


Example: Files test2.txt and test3.txt where downloaded from our local SFTP site. They are empty files created with Notepad. I have tried files of varying size as well.

This show the actual directory listing and what winscp is reporting.

C:\Program Files (x86)\WinSCP>dir
Volume in drive C has no label.
Volume Serial Number is 1C5E-4FFA

Directory of C:\Program Files (x86)\WinSCP

03/21/2011 04:12 PM <DIR> .
03/21/2011 04:12 PM <DIR> ..
12/11/2010 10:09 PM 185,856 DragExt64.dll
02/23/2011 11:44 AM 185,856 is-3MO91.tmp
09/14/2003 10:49 PM 15,515 licence
03/21/2011 04:12 PM <DIR> PuTTY
03/21/2011 04:12 PM 30,043 unins000.dat
03/21/2011 04:11 PM 707,427 unins000.exe
02/23/2011 11:44 AM 89,600 WinSCP.com
02/23/2011 11:44 AM 6,348,800 WinSCP.exe
08/13/2009 09:16 PM 150,534 WinSCP.ico
10/15/2010 08:32 AM 2,817 winscp_log.txt
9 File(s) 7,716,448 bytes
3 Dir(s) 974,146,072,576 bytes free

C:\Program Files (x86)\WinSCP>winscp
winscp> lls
03/21/2011 04:44 PM <DIR> ..
12/11/2010 10:09 PM 185,856 DragExt64.dll
02/23/2011 11:44 AM 185,856 is-3MO91.tmp
09/14/2003 10:49 PM 15,515 licence
03/21/2011 04:12 PM <DIR> PuTTY
10/04/2007 12:00 AM 388 README
09/22/2010 01:52 PM 0 test2.txt
09/22/2010 02:15 PM 0 test3.txt

03/21/2011 04:12 PM 30,043 unins000.dat
03/21/2011 04:11 PM 707,427 unins000.exe
02/23/2011 11:44 AM 89,600 WinSCP.com
02/23/2011 11:44 AM 6,348,800 WinSCP.exe
08/13/2009 09:16 PM 150,534 WinSCP.ico
10/15/2010 08:32 AM 2,817 winscp_log.txt
winscp>

Reply with quote

Advertisement

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

Re: Permission Issue - On download - No error being thrown

It's likely due to file system redirection functionality of Windows 7. It allows WinSCP to "write" to directory you do not have permissions to by actually writing them elsewhere. Application aware of the redirection functionality won't show such files.

Reply with quote

Advertisement

You can post new topics in this forum