Permissions of the files and directory created by sftp-server.
Dmitry Belyavskiy
dbelyavs at redhat.com
Fri Dec 16 23:29:03 AEDT 2022
Dear colleagues,
I want to draw your attention to this proposal:
https://github.com/openssh/openssh-portable/pull/351
This is to add two options (-m and -M) to sftp-server in order to force the
permission of the files and directory created by sftp-server. Some
applications have a requirement for the permission of the files and
directories which are created by the sftp-server.
Now, some permission can be excluded by -u option, but the base permission
comes from the original permission on the client side. And, it cannot be
controlled by the sftp-server side completely.
The -m option is for files, and the -M option is for directories.
The patch is partially implemented and as downstream in RH-based
distributions and works quite well.
--
Dmitry Belyavskiy
More information about the openssh-unix-dev
mailing list