From owner-freebsd-questions Sat Jan 20 09:27:00 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id JAA07121 for questions-outgoing; Sat, 20 Jan 1996 09:27:00 -0800 (PST) Received: from haven.uniserve.com (haven.uniserve.com [198.53.215.121]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id JAA07098 for ; Sat, 20 Jan 1996 09:26:55 -0800 (PST) Received: by haven.uniserve.com id <30752-4>; Sat, 20 Jan 1996 09:29:39 -0000 Date: Sat, 20 Jan 1996 09:29:31 -0800 (PST) From: Tom Samplonius To: Yuri Gindin cc: freebsd-questions@FreeBSD.ORG Subject: Re: wu-ftpd won't tar files In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@FreeBSD.ORG Precedence: bulk On Sat, 20 Jan 1996, Yuri Gindin wrote: > Hello, > I just compiled wu-ftpd from ports-current on my -stable system > Everything works fine for anon-ftp, but it won't tar a files on the > fly. The command "get file.tar.gz" gives: > local: file.tar.gz remote: file.tar.gz > 200 PORT command successful. > 550 file.tar.gz: No such file OR directory. > i installed ls, tar and gzip to ~ftp/bin with the following perms: > drwx--x--x 2 0 wheel 512 Dec 28 14:47 bin > drwx--x--x 2 0 wheel 512 Dec 27 18:07 etc > drwxrwxrwt 2 0 wheel 512 Dec 27 18:32 incoming > drwxr-xr-x 4 0 wheel 512 Jan 7 20:15 pub > and in ~ftp/bin: > -r-xr-xr-x 1 root wheel 16384 Dec 28 16:47 compress > -r-xr-xr-x 1 root wheel 98304 Dec 28 16:46 gzip > -r-xr-xr-x 1 root wheel 147456 Dec 28 16:29 ls > -r-xr-xr-x 1 root wheel 229376 Dec 28 16:47 tar > everything static. You need to make sure that the tar feature is available to your class in your ftpaccess config file. > You can also see that it unable to get uid, instead of this gives > a numbers, inspite of installation of the passwd file in ~ftp/etc. /etc/passwd isn't used for anything. FreeBSD uses binary databases for everything. Copy /etc/pwd.db instead. > and also don't follows symbolic links, when trying to cd. > lrwxr-xr-x 1 0 wheel 8 Jan 7 20:17 FreeBSD-stable -> /usr/src > lrwxr-xr-x 1 0 wheel 14 Jan 7 20:17 ports -> /usr/src/ports > ftp> cd ports > 550 ports: No such file or directory. wu-ftpd cannot follow symlinks out of the anon FTP root. So unless /usr/src is in ~ftp/ it won't work. wu-ftpd uses chroot() on ~ftp/. > here are my config files: > 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 > What's wrong ? > Any suggestions ? > Thanks in advance . > > /-----------------------------------------------------------------\ > | \\ Yuri Gindin http://www.xpert.com/~yuri | > | \\ // || Home: +972-4-282475 | > | \\ // ___ ___ ___||__ Work: +972-4-545259 | > | \// / --\ / --\ / --||-- Internet | > | //\ || \\// __/ || || S/W Development | > | // \\ ||__//\\____ || \\__ Network Integration | > | ==//===\\||======================= System Administration | > \---------\||-------UNIX Systems LTD------------------------------/ > > > Tom