[SM-Discuss] chroot over ssh with pam_chroot
Mathieu L.
lejatorn at smgl.homelinux.net
Mon Dec 20 19:23:27 EST 2004
On Mon, Dec 20, 2004 at 12:56:35PM +0100, Mads Laursen wrote:
> On 20/12/04 02.32, Mathieu L. wrote:
> > On Mon, Dec 20, 2004 at 12:51:18AM +0100, Mads Laursen wrote:
> >
> > > It's been awfully long since I did any serious chrooting, but I seem
> > > to recall that the "I have no name!" issue is related to the libraries
> > > available in the current view of the filesystem.
>
> Seems I'm a bit mistaken. I did a search for "I have no name" and LFS,
> since that's where I remeber it from, and sure enough, it's in the
> book[1]. It is supposed to be what you get when the current userid is
> not in /etc/passwd. And from your original mail I recall that you
> tried with a fully populated /etc.
>
> > Of course I had ldded every bins I put in the chroot to know which libs
> > I should copy, and subsequently copied those.
>
> That should work, just remember to to check the libs as well, I think
> they can have dependancies themselves (that are not listed by the
> bins).
>
ok, you were right I was just lacking some libs, I copied all the libs
from /lib to lib in the chroot and the naughty prompt disappeared :)
Now, I just need to narrow the number of essential libs, I guess strace
will help here.
Cheers,
Mathieu
More information about the SM-Discuss
mailing list