From owner-freebsd-questions Sun Aug 3 11:15:19 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id LAA06286 for questions-outgoing; Sun, 3 Aug 1997 11:15:19 -0700 (PDT) Received: from andrsn.stanford.edu (root@andrsn.Stanford.EDU [36.33.0.163]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id LAA06277 for ; Sun, 3 Aug 1997 11:15:17 -0700 (PDT) Received: from localhost (andrsn@localhost.stanford.edu [127.0.0.1]) by andrsn.stanford.edu (8.8.5/8.6.12) with SMTP id LAA05597; Sun, 3 Aug 1997 11:14:56 -0700 (PDT) Date: Sun, 3 Aug 1997 11:14:56 -0700 (PDT) From: Annelise Anderson Reply-To: Annelise Anderson To: Brian Somers cc: Doug White , Nathan Dorfman , khetan@iafrica.com, freebsd-questions@FreeBSD.ORG Subject: Re: wu-ftpd doesn't tar or compress In-Reply-To: <199708031245.NAA09857@awfulhak.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Sun, 3 Aug 1997, Brian Somers wrote: > > On Tue, 29 Jul 1997, Brian Somers wrote: > > > > > > Wouldn't you need to add compress and tar binaries to ~ftp/bin so they > > > > will get executed after the chroot() in an anonymous login? > > > > > > Yep, except you put them in ~ftp/usr/bin and create > > > ~ftp/usr/lib/libc.so.... too. > > > > Not if you yank them from /bin, they're statically linked there. > /usr/bin contains tar, bin, and compress on my system, of which only compress is dynamically linked according to ldd. /stand doesn't contain compress. /usr/bin/compress: -lc.3 => /usr/lib/libc.so.3.0 (0x801d000) I tried putting compress in /home/ftp/bin and in /home/ftp/usr/bin, with the associated library in /home/ftp/lib and /home/ftp/usr/lib, but "get junk.tar.Z" still doesn't work--it creates a 0 byte file, even with ftpcompress changed to /usr/bin for .Z. However "get junk.tar.gz" does work. Annelise