Mailing List Archive

Permissions of the files and directory created by sftp-server.
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
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev