https://bugzilla.mindrot.org/show_bug.cgi?id=1951
Bug #: 1951
Summary: Add home directory facility for chrooted environments
Classification: Unclassified
Product: Portable OpenSSH
Version: -current
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: sshd
AssignedTo: [email protected]
ReportedBy: [email protected]
Created attachment 2107
--> https://bugzilla.mindrot.org/attachment.cgi?id=2107
Diffs agains NetBSD 5.1
I find that the internal-sftp mostly does what I want except that it
leaves the user in the root of the chroot area. I can't make the
user's directory the chroot since that is not owned by root. So I
added code to allow me to specify the home directory. So, for example,
I have the following Match stanza in sshd_config:
Match Group sftponly
ChrootDirectory /u/
AllowTCPForwarding no
X11Forwarding no
ForceCommand internal-sftp
HomeDirectory /%u/
Now the user is dropped into his own home directory under the chroot
area.
I'm not sure if the name is correct - we don't have to actually specify
his home directory - but I have tested this on NetBSD 5.1 and it works.
--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
_______________________________________________
openssh-bugs mailing list
[email protected]
https://lists.mindrot.org/mailman/listinfo/openssh-bugs