Skip site navigation (1)Skip section navigation (2)
Date:      	Sat, 20 Jan 1996 09:29:31 -0800 (PST)
From:      Tom Samplonius <tom@uniserve.com>
To:        Yuri Gindin <yuri@aebeard.technion.ac.il>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: wu-ftpd won't tar files 
Message-ID:  <Pine.BSF.3.91.960120092631.1330C-100000@haven.uniserve.com>
In-Reply-To: <Pine.BSF.3.91.960120180010.6848A-100000@aebeard.technion.ac.il>

next in thread | previous in thread | raw e-mail | index | archive | help

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 <yuri@xpert.com> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.960120092631.1330C-100000>