[Bug 3917] New: Add chroot support to sftp-server
bugzilla-daemon at mindrot.org
bugzilla-daemon at mindrot.org
Fri Feb 6 21:36:15 AEDT 2026
https://bugzilla.mindrot.org/show_bug.cgi?id=3917
Bug ID: 3917
Summary: Add chroot support to sftp-server
Product: Portable OpenSSH
Version: -current
Hardware: Other
OS: Linux
Status: NEW
Severity: enhancement
Priority: P5
Component: sftp-server
Assignee: unassigned-bugs at mindrot.org
Reporter: eloi.benoist-vanderbeken at synacktiv.com
Created attachment 3938
--> https://bugzilla.mindrot.org/attachment.cgi?id=3938&action=edit
patch to add chroot support to sftp-server
I would like to add chroot support to sftp-server.
I am well aware that I could use ChrootDirectory with internal-sftp but
that doesn't suit my needs (I need to configure the sftp server in a
way that is incompatible with internal-sftp).
I'm launching my patched sftp-server from an unprivileged namespace so
running as root is not a problem for me but we could add chroot-like
`--userspec=USER:GROUP` and `--groups=G_LIST` options if needed.
I have created a very simple patch that works for me, I'm sure it's not
ready to be merged but I'll be happy to help get there :)
--
You are receiving this mail because:
You are watching the assignee of the bug.
More information about the openssh-bugs
mailing list