Mailing List Archive

[Bug 1574] New: trailing white space on Forced Command within ChrootDirectory causes failure
https://bugzilla.mindrot.org/show_bug.cgi?id=1574

Summary: trailing white space on Forced Command within
ChrootDirectory causes failure
Product: Portable OpenSSH
Version: 5.1p1
Platform: All
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: sshd
AssignedTo: unassigned-bugs@mindrot.org
ReportedBy: bburnell@cisco.com


When configuring a Match group or Match user for ChrootDirectory,
trailing white space on Forced Command results in "Connection closed".

Match group download
ChrootDirectory /common/chroot
ForceCommand internal-sftp
^ extra space here

trace ...
debug1: subsystem: exec() internal-sftp
debug1: Forced command (config) 'internal-sftp '

output ...
bburnell@bcodev # sftp sftpadmin@bldr-ccm44
Connecting to bldr-ccm44...
sftpadmin@bldr-ccm44's password:
Connection closed

Match group download
ChrootDirectory /common/chroot
ForceCommand internal-sftp
^ no extra space here

debug1: subsystem: exec() internal-sftp
debug1: Forced command (config) 'internal-sftp'

bburnell@bcodev # sftp sftpadmin@bldr-ccm44
Connecting to bldr-ccm44...
sftpadmin@bldr-ccm44's password:
sftp> Connection to bldr-ccm44 closed by remote host.

--
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
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs