WinSCP not able to preserve file permission when transfer files from Win (local) to Linux (remote)

Advertisement

JimWang
Joined:
Posts:
1
Location:
Texas

WinSCP not able to preserve file permission when transfer files from Win (local) to Linux (remote)

I am using WinSCP v 5.19.5, but I think this problem I am have should not a new issue.
When I transfer a local file on Windows 10 with permission as rwx-r-xr-x to remote Linux host, the file permission becomes rw-r--r--.
So I checked settings in Options->Preferences->Transfer->Edit->UploadOptions->SetPermissions:
this box is UNchecked. Obviously this means leave the file permission alone and don't change it. But it does NOT work. Interestingly, This option box has a greyed out text of "wr-r--r--(+x)" which obviously been used by the WinSCP to set the permission on the remote computer. To confirm my observation, I changed it to "wrxr-xr-x", but still kept the box UNchecked, the file on the remote system got his new permission "wrxr-xr-x"!!!
This is obviously a bug – WinSCP is supposed to ignore any thing in the box when unchecked, but it still used it to set remote file permission.

Any idea what is going on, how to fix it, or is there a version that does not have this problem?

Reply with quote

Advertisement

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

Re: WinSCP not able to preserve file permission when transfer files from Win (local) to Linux (remote)

Please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, enable logging, log in to your server and do the operation and only the operation that causes the error. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

Reply with quote

Advertisement

You can post new topics in this forum