umask 002 and setting file permissions

Advertisement

squadette
Joined:
Posts:
2

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!

Reply with quote

Advertisement

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

Re: umask 002 and setting file permissions

squadette wrote:

WinSCP configuration has a checkbox "Ignore errors (for advanced users)". It seems like far plugin ignores that checkbox.
The option is not implemented in the plugin yet.

Also, it could be possible to upload files via temporary files and renaming.

This is done for large files (to allow resume). You may force this for all files in configuration.

Reply with quote

squadette
Joined:
Posts:
2

Re: umask 002 and setting file permissions

The option is not implemented in the plugin yet.

I think that implementation of this is no more than one hour of your time. Will $15 be enough to compensate this?

This is done for large files (to allow resume). You may force this for all files in configuration.

The only thing close to this description is "Enable transfer resume", but it does not help me. What exactly do you mean?

Thank you!

Reply with quote

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

Re: umask 002 and setting file permissions

squadette wrote:

I think that implementation of this is no more than one hour of your time. Will $15 be enough to compensate this?
Do not worry, I'll add the feature. However you are always welcome to make a donation :-)

This is done for large files (to allow resume). You may force this for all files in configuration.

The only thing close to this description is "Enable transfer resume", but it does not help me. What exactly do you mean?

I've meant it only as a workaround. When "Enable transfer resume" is on for all files, thay are first uploaded to temporary file, which is renamed to target filename once upload is finished.

Reply with quote

Advertisement

You can post new topics in this forum