From owner-freebsd-isp Sat May 25 08:29:36 1996 Return-Path: owner-isp Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id IAA28852 for isp-outgoing; Sat, 25 May 1996 08:29:36 -0700 (PDT) Received: from GndRsh.aac.dev.com (GndRsh.aac.dev.com [198.145.92.241]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id IAA28844 for ; Sat, 25 May 1996 08:29:29 -0700 (PDT) Received: (from rgrimes@localhost) by GndRsh.aac.dev.com (8.6.12/8.6.12) id IAA19761; Sat, 25 May 1996 08:28:32 -0700 From: "Rodney W. Grimes" Message-Id: <199605251528.IAA19761@GndRsh.aac.dev.com> Subject: Re: wu-ftpd and tar To: petzi@zit.th-darmstadt.de (Michael Beckmann) Date: Sat, 25 May 1996 08:28:31 -0700 (PDT) Cc: isp@FreeBSD.ORG In-Reply-To: from Michael Beckmann at "May 25, 96 12:24:32 pm" X-Mailer: ELM [version 2.4ME+ PL11 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-isp@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > Hello, > > I have installed the wu-ftpd from /usr/ports on my machine. Everything > works fine. However, I would like all users to be able to use tar and > compression for getting the files, so that for example a user who wants to > get a directory foo can type "get foo.tar.gz" and the server will tar and > gzip it for him. I didn't make this work yet. The manpage for > ftpconversions is very cryptical. > > This is what I have in /usr/local/etc/ftpaccess : > > compress yes local remote > tar yes local remote > > > And this in ftpconversions: > > :.Z: : :/bin/gzip -d -c %s:T_REG|T_ASCII:O_UNCOMPRESS:UNCOMPRESS > : : :.Z:/bin/compress -c %s:T_REG:O_COMPRESS:COMPRESS > :.gz: : :/bin/gzip -cd %s:T_REG|T_ASCII:O_UNCOMPRESS:GUNZIP > : : :.gz:/bin/gzip -9 -c %s:T_REG:O_COMPRESS:GZIP > : : :.tar:/bin/tar -c -f - %s:T_REG|T_DIR:O_TAR:TAR > : : :.tar.Z:/bin/tar -c -Z -f - %s:T_REG|T_DIR:O_COMPRESS|O_TAR:TAR+COMPRESS > : : :.tar.gz:/bin/tar -c -z -f - %s:T_REG|T_DIR:O_COMPRESS|O_TAR:TAR+GZIP tar and gzip are not normally installed in /bin on a FreeBSD system, they are in /usr/bin, I usually change the above paths to /usr/bin/gzip and /usr/bin/tar, this fixes it so that normal users can use the .tar and .tar.gz options. For anonymous users things are tricker since they will be chrooted to ~ftp and they will need statically linked versions of gzip, tar and compress placed in ~ftp/usr/bin. You should be able to just copy /usr/bin/{gzip,tar} into ~ftp/usr/bin as those files are statically linked in the standard FreeBSD distributions. > The respective binaries are in their place. Are they in there place inside the ~ftp hierarchy for anonymous users? Does it work okay for real logins, and fail for anoymous users, or vice-versa? > Has anyone made this work ? Yes... -- Rod Grimes rgrimes@gndrsh.aac.dev.com Accurate Automation Company Reliable computers for FreeBSD