Keep permissions of overwritten file when moving to trash

Advertisement

Libik
Guest

Keep permissions of overwritten file when moving to trash

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!

Reply with quote

Advertisement

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

Re: Keep permissions of overwritten file when moving to trash

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

Libik
Guest

Re: Keep permissions of overwritten file when moving to trash

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

Reply with quote

martin
Site Admin
martin avatar

Re: Keep permissions of overwritten file when moving to trash

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.

Reply with quote

Advertisement

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

Re: Keep permissions of overwritten file when moving to trash

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.

Reply with quote

Guest

Re: Keep permissions of overwritten file when moving to trash

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar

Re: Keep permissions of overwritten file when moving to trash

Thanks for your report.
I have sent you an email with a debug version of WinSCP.

Reply with quote

Advertisement

You can post new topics in this forum