From owner-freebsd-questions Thu Jul 4 15:14:36 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA06875 for questions-outgoing; Thu, 4 Jul 1996 15:14:36 -0700 (PDT) Received: from who.cdrom.com (who.cdrom.com [204.216.27.3]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id PAA06865 for ; Thu, 4 Jul 1996 15:14:34 -0700 (PDT) Received: from seagull.rtd.com (root@seagull.rtd.com [198.102.68.2]) by who.cdrom.com (8.6.12/8.6.11) with ESMTP id PAA16295 for ; Thu, 4 Jul 1996 15:14:29 -0700 Received: (from dgy@localhost) by seagull.rtd.com (8.7.5/1.2) id PAA29080 for freebsd-questions@freefall.cdrom.com; Thu, 4 Jul 1996 15:12:52 -0700 (MST) From: Don Yuniskis Message-Id: <199607042212.PAA29080@seagull.rtd.com> Subject: wu-ftpd compress... To: freebsd-questions@freefall.FreeBSD.org (FreeBSD questions) Date: Thu, 4 Jul 1996 15:12:51 -0700 (MST) X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Greetings! > From: Werner Griessl > Date: Thu, 4 Jul 1996 16:34:50 +0000 () > Subject: Re: setting up wu-ftpd > > > > On Thu, 4 Jul 1996, Werner Griessl wrote: > > > > > > >Found the solution now ! > > > > > > It didn't for me!. I made the change to ftpaccess, and get this message > > > > > > 0:/ > > > ncftp>cd /pub/netscape/gold/ > > > You have new mail. > > > 0:/pub/netscape/gold > > > (Mail) ncftp>ls -al > > > total 16 > > > drwxr-xr-x 4 root operator 512 Jul 3 23:45 ./ > > > drwxr-xr-x 5 root operator 512 Jul 3 23:45 ../ > > > drwxr-xr-x 2 root operator 512 Jul 3 23:39 2/ > > > drwxr-xr-x 2 root operator 512 Jul 3 23:38 3/ > > > 0:/pub/netscape/gold > > > ncftp>get 2.tar.gz > > > Local error: conversion program not found. Cannot TAR+GZIP file. > > > 0:/pub/netscape/gold > > > ncftp>quit > > > You have mail in /var/mail/khetan > > > [chain] ~$ > > > > > > My ftpaccess file contains > > > > > > compress yes all local remote > > > tar yes all local remote > > > zip yes all local remote > > > > > > and my ftpconversions file is > > > > > > :.Z : : :/usr/ftp/bin/gzip -d -c %s:T_REG|T_ASCII:O_UNCOMPRESS:UNCOMPRESS > > > : : :.Z:/usr/ftp/bin/compress -c %s:T_REG:O_COMPRESS:COMPRESS > > > :.gz: : :/usr/ftp/bin/gzip -cd %s:T_REG|T_ASCII:O_UNCOMPRESS:GUNZIP > > > : : :.gz:/usr/ftp/bin/gzip -9 -c %s:T_REG:O_COMPRESS:GZIP > > > : : :.zip:/usr/ftp/bin/zip -9 -r %s:T_REG:O_COMPRESS:ZIP > > > : : :.tar:/usr/ftp/bin/tar -c -f - %s:T_REG|T_DIR:O_TAR:TAR > > > : : :.tar.Z:/usr/ftp/bin/tar -c -Z -f - %s:T_REG|T_DIR:O_COMPRESS|O_TAR:TAR+COMPRESS > > > : : :.tar.gz:/usr/ftp/bin/tar -c -z -f - %s:T_REG|T_DIR:O_COMPRESS|O_TAR:TAR+GZIP > > I believe that's wrong (unless you have a ~ftp/usr/ftp/bin/gzip). The paths > > are relative to the chroot'ed ftp home dir. You need a > > ~ftp/bin/{gzip,tar,compress}. > > > > :.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 > > > > > > > > > > > > > Regards, > > > Khetan Gajjar. > > > > > > --- > > > http://www.chain.iafrica.com/~khetan/ > > > UUNet-Internet Africa > > > Operations - 0800-030-002 > > > > > > > > > > --Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de > > > > I use /usr/bin/ in ftpconversions and a link from ftp's HOME/usr/bin -> HOME/bin. > This will work for both ftp and "normal" users ! > I use also statically linked binaries in ftp's HOME to avoid problems with > the shared libraries path. > > Works for me except .Z (compress). Don't no why . > > Werner I think you'll find compress is NOT built static (at least it wasn't in 2.1R). You can use gzip (I believe) to give you compress's behaviour, though... --don