[Bug 1235] [PATCH] scp does unnecessary getpwuid(), breaking chroot

bugzilla-daemon at natsu.mindrot.org bugzilla-daemon at natsu.mindrot.org
Thu Oct 24 11:12:41 EST 2013


https://bugzilla.mindrot.org/show_bug.cgi?id=1235

Damien Miller <djm at mindrot.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WORKSFORME

--- Comment #7 from Damien Miller <djm at mindrot.org> ---
(In reply to donkishoot from comment #5)
> I have a bug that i think is similar.
> 
> I'm trying to make a jail for winbind sftp users who must have an
> only sftp service (no shell).
> 
> This is the error i found when debugging (i replace scponlyc by bash
> for the test):
> 
> ssh usersftp1 at 192.168.2.1
> bash-4.0$ chroot .
> bash-4.0$ ./usr/libexec/openssh/sftp-server
> No user found for uid 10653
> 
> Is their a workaround ?
> 
> I had no problem with this solution on an old Fedora.

We added "internal-sftp" to make sftp in chroot easier. See
sshd_config's manpage and search for "internal-sftp".

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.


More information about the openssh-bugs mailing list