umask 002 and setting file permissions
good day,
my users upload files using FAR plugin. Files have permissions of 664, and shared group ("publishers").
I specify "Set permissions" in WinSCP preferences, and tell it to set rw-rw-r--.
Suppose alice uploads a file, and it gets owner alice/publishers, with permissions of 0664.
Then bob tries to overwrite a file. When plugin tries to set permissions, it gets an error from server: "Permission denied". That is expected, because file belongs to alice.
WinSCP configuration has a checkbox "Ignore errors (for advanced users)". It seems like far plugin ignores that checkbox.
I think that this is a misfeature, and it needs to be fixed.
Either honour the "ignore errors", or do not set permissions if they are already set as needed.
Also, it could be possible to upload files via temporary files and renaming.
Thanks for a great software!
my users upload files using FAR plugin. Files have permissions of 664, and shared group ("publishers").
I specify "Set permissions" in WinSCP preferences, and tell it to set rw-rw-r--.
Suppose alice uploads a file, and it gets owner alice/publishers, with permissions of 0664.
Then bob tries to overwrite a file. When plugin tries to set permissions, it gets an error from server: "Permission denied". That is expected, because file belongs to alice.
WinSCP configuration has a checkbox "Ignore errors (for advanced users)". It seems like far plugin ignores that checkbox.
I think that this is a misfeature, and it needs to be fixed.
Either honour the "ignore errors", or do not set permissions if they are already set as needed.
Also, it could be possible to upload files via temporary files and renaming.
Thanks for a great software!