Topic "Permissions not preserved under Linux!"

Author Message
GeniuX
[View user's profile]

Joined: 2014-09-23
Posts: 3
Hi,

I use the portable version 5.5.5 build 4605, at office.

Under Linux (via SFTP), when I create or modify a file with the editor, and I save the file, WinSCP systematically assigns the permission of the file to 0644! (even if I have set the permission to 0754! in all places in the transfert settings).

Is there a way to preserve the original permission of the file, very boring to manually change the file permission at each time.

Thanks for your help.

Best regards.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
Please attach a full log file showing the problem (using the latest version of WinSCP).

To generate 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.
_________________
Martin Prikryl
GeniuX
[View user's profile]

Joined: 2014-09-23
Posts: 3
Hello,

In attached file you will find the log you request (the file edited is "test.sh", with original rights = 0777).

I had a look inside, and I think I found the reason of the issue.

Because I have choosen to make a Recycle bin on the server with the option "Preserve overwritten remote files to Recycle bin", WinSCP moves the original file to the Recycle bin (OK) then send the modified file on the server ,without keep the same rights as the original! (KO). I made a try without the option "Preserve overwritten..." and the rights are kept.

IMO, this is a bug, or if not, you should to improve the software on that point.



Best regards.
LOG_FILE.log (89.09 KB) Private file

Description: (none)

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
OK, I see. Thanks for your research. Will take a look.
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