Topic "Keep permissions of overwritten file when moving to trash"

Author Message
Libik

Guest


Hi,

In certain directory I have file premissions set to 0755. Using remote trash the file to be ovewritten is moved to trash and new file is stored, however it has 0644 but I want to keep the same permission 0755. Is that somehow possible?

Thanks!
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26572
Location: Prague, Czechia
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.
Libik

Guest


Here it comes.
Moved file in trash preservers its permissions while the new one has 0644
winscp.png (20.8 KB) Private file

Description: (none)

test.log (25.78 KB) Private file

Description: (none)

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26572
Location: Prague, Czechia
Thanks for the log.

It's the ascii mode that (incorrectly) prevents WinSCP from restoring the permissions. Turn it off, if possible. I'll look into this.
Guest




Binary mode didn't help.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26572
Location: Prague, Czechia
Post a log file with the binary mode please.
Libik

Guest


Attached.
winscp.log (11 KB) Private file

Description: (none)

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26572
Location: Prague, Czechia
Can you send me an email, so I can send you back a debug version of WinSCP to track the problem? Please include link back to this topic in your email. Also note in this topic that you have sent the email. Thanks.

You will find my address (if you log in) in my forum profile.
Guest




While I am not registered, please use attached one.
adr.PNG (775 Bytes) Private file

Description: (none)

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26572
Location: Prague, Czechia
Thanks for your report.
I have sent you an email with a debug version of WinSCP.
Advertisements

You can post new topics in this forum






Search

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