#841237 openssh-server: option to let openssh/sftp force the exact permissions on newly uploaded files

Package:
openssh-server
Source:
openssh
Description:
secure shell (SSH) server, for secure access from remote machines
Submitter:
Raphaël Droz
Date:
2021-04-01 14:51:23 UTC
Severity:
wishlist
#841237#5
Date:
2016-10-18 19:15:41 UTC
From:
To:
Dear Maintainer,

Currently when setting up a shared sftp upload space between multiple
users/logins, you can force a proper umask with the -u switch.

This requires that the file at the origin has wide-permissions to start with.
In some cases, users are not skilled enough to set the permissions to be
correct (sigh).

While this could be solved via file/dir ACLs, it is also not entirely trivial
in most environments.

https://bugzilla.redhat.com/show_bug.cgi?id=1191055
https://bugzilla.mindrot.org/show_bug.cgi?id=1844
https://superuser.com/questions/1066554/



Thank you

#841237#12
Date:
2017-03-10 15:56:35 UTC
From:
To:
See the latest patch:
https://bugzilla.mindrot.org/attachment.cgi?id=2872&action=diff

Any hope this could be added to Debian custom patches in the next
release?

#841237#17
Date:
2017-11-25 13:26:18 UTC
From:
To:
Dear Maintainer(s),

The V3 patch (https://bugzilla.mindrot.org/attachment.cgi?id=3096) forces permission on directories as well, builds
cleanly both with Debian 8 and 9 (openssh-server 1:7.4p1-10+deb9u1 and 1:7.6p1-2) and is a great feature IMHO.

Please integrate.

Elemér

#841237#22
Date:
2017-11-25 14:25:49 UTC
From:
To:
The reason for this is: what if upstream decided to integrate some other
change that added a -m option with different semantics?  Then I, and
Debian users, would be in a sticky situation with no clear way out.

I have no particular objection to the patch, but there's no point
continuing to promote it on this bug report.

Regards,

#841237#27
Date:
2021-04-01 14:28:36 UTC
From:
To:
I'd like to register a vote here. Fedora and therefore RHEL have been
shipping this patch for 6 years now:

https://src.fedoraproject.org/rpms/openssh/blob/f22/f/openssh-6.7p1-sftp-force-permission.patch

The chances of BSD either upstreaming this patch OR providing a patch
which behaves differently to this one seems to me to be quite low.