Re: sftp-server No user found for uid x
Brought to you by:
xystrus
From: Matthijs K. <m.k...@st...> - 2007-06-27 09:53:02
|
Hey, I've been having similar problems. > with scp, it says: unknown user 6653 > > I have the /etc/passwd, /etc/group in the jail. AFAIK having passwd should work to resolve the user id. Are you sure that a user with that id is in the passed file? Is it readable by all users? In my situation I was importing users through nss_winbind, which is non-trivial to import into the jail (no simple passwd file). I created a patch for scp, which prevents scp from looking up the user, it really doesn't use it anyway. So far, the patch doesn't seem to have been considered for inclusion (though it's quite trivial). Anyway, the patch is here: http://bugzilla.mindrot.org/show_bug.cgi?id=1235 It is weird that sftp-server breaks for you, for it works fine for me (without any passwd file or nss lookup in the jail). Might be that I'm running FreeBSD, but AFAIK that's openssh as well. Gr. Matthijs |