Bug 1574 - trailing white space on Forced Command within ChrootDirectory causes failure
Summary: trailing white space on Forced Command within ChrootDirectory causes failure
Status: CLOSED WORKSFORME
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: sshd (show other bugs)
Version: 5.1p1
Hardware: All Linux
: P2 normal
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-19 07:52 AEDT by bburnell
Modified: 2010-04-16 15:50 AEST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bburnell 2009-03-19 07:52:03 AEDT
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.
Comment 1 Damien Miller 2009-03-19 14:04:33 AEDT
I think that this is fixed in 5.2p1 - could you test this version?
Comment 2 Damien Miller 2009-12-07 11:10:35 AEDT
Closing due to inactivity.

This is probably fixed. If not then please reopen.
Comment 3 Damien Miller 2010-04-16 15:50:06 AEST
Mass move of bugs RESOLVED->CLOSED following the release of openssh-5.5p1