Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 May 1996 08:28:31 -0700 (PDT)
From:      "Rodney W. Grimes" <rgrimes@GndRsh.aac.dev.com>
To:        petzi@zit.th-darmstadt.de (Michael Beckmann)
Cc:        isp@FreeBSD.ORG
Subject:   Re: wu-ftpd and tar
Message-ID:  <199605251528.IAA19761@GndRsh.aac.dev.com>
In-Reply-To: <v03006f01adcc8d8ea238@[130.83.63.13]> from Michael Beckmann at "May 25, 96 12:24:32 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199605251528.IAA19761>