[Bug 1574] New: trailing white space on Forced Command within ChrootDirectory causes failure

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Thu Mar 19 07:52:04 EST 2009


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 at mindrot.org
        ReportedBy: bburnell at 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 at bcodev # sftp sftpadmin at bldr-ccm44
Connecting to bldr-ccm44...
sftpadmin at 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 at bcodev # sftp sftpadmin at bldr-ccm44
Connecting to bldr-ccm44...
sftpadmin at 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.


More information about the openssh-bugs mailing list