[Bug 2052618] Re: Missing sftp-server argument -m force_file_perms
Paride Legovini
2052618 at bugs.launchpad.net
Thu Feb 8 11:31:26 UTC 2024
This is a duplicate of LP: #1922130, marking it as such.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to openssh in Ubuntu.
https://bugs.launchpad.net/bugs/2052618
Title:
Missing sftp-server argument -m force_file_perms
Status in openssh package in Ubuntu:
New
Bug description:
In Centos, RHEL, ... openssh-server package with sftp-server has an option
-m force_file_perms
Sets explicit file permissions to be applied to newly-created files instead of the default or client requested mode. Numeric values include: 777, 755, 750, 666, 644, 640, etc. Using both -m and -u switches makes the umask (-u) effective only for newly created directories and explicit mode (-m) for newly created files.
This option is missing in Ubuntu 22.04.3 LTS
Code patch from Fedora:
https://src.fedoraproject.org/rpms/openssh/raw/f34/f/openssh-6.7p1-sftp-force-permission.patch
SFTP put command is sending source filemask to the remote server as is.
For shared folders there is a risk sender will generate a file, which another user can not read.
That's why there is force_file_perms to force filemask on shared sftp accounts no matters what filemask had source file on client side.
This feature is welcome to migrate from RHEL to Ubuntu.
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: openssh-server 1:8.9p1-3ubuntu0.6
Uname: Linux 5.15.0-200.131.27.1.el9uek.x86_64 x86_64
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckResult: unknown
Date: Wed Feb 7 10:22:50 2024
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
SourcePackage: openssh
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/2052618/+subscriptions
More information about the foundations-bugs
mailing list