From owner-freebsd-questions Mon Feb 10 09:47:43 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id JAA14300 for questions-outgoing; Mon, 10 Feb 1997 09:47:43 -0800 (PST) Received: from gdi.uoregon.edu (gdi.uoregon.edu [128.223.170.30]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id JAA14292 for ; Mon, 10 Feb 1997 09:47:39 -0800 (PST) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.8.5/8.6.12) with SMTP id JAA00210; Mon, 10 Feb 1997 09:47:20 -0800 (PST) Date: Mon, 10 Feb 1997 09:47:20 -0800 (PST) From: Doug White X-Sender: dwhite@localhost Reply-To: Doug White To: Snob Art Genre cc: questions@freebsd.org Subject: Re: "no ld.so" when ftp'ing In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Mon, 10 Feb 1997, Snob Art Genre wrote: > I've been getting some unexpected errors (the best kind) when > ftp'ing to my FreeBSD 2.1.5R machine running vanilla ftpd. > > 1) When I'm logged in as a real user (e.g. ben) locally or remotely, I > can do ls or dir with no problems. > > 2) When I'm logged in as anonymous or ftp *from a remote site*, I can do > ls but dir gets me "no ld.so". You need to copy ls from /bin to ~ftp/bin, since anonymous logins are chroot()ed to ~ftp/, which means that ~ftp becomes the root directory (/) for that process . See the ftpd(8) man page for instructions on setting up anonymous logins. > The only other data point I can think of that might be relevant is that I > replaced /bin/ls with a statically-compiled version of the colorls port, > renaming the old ls to ls.old. Are you sure it compiled statically? It's acting like it didn't. > I've tried symlinking and alternately copying /usr/libexec/ld.so to > /var/ftp, with no effect. You'd have to create ~ftp/usr/libexec/ and copy ld.so there. But you need to check and make extra sure that colorls was properly compiled. Note that many ftp clients won't grok color ANSI codes properly, so this is a bit of a waste, IMHO. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major