Summary : wuftpd TAR+COMPRESS

From: Magali BERNARD <Magali.Bernard_at_univ-st-etienne.fr>
Date: Mon, 28 Oct 96 09:53:02 +0100

Sorry for the late summary, I just found the solution in the wu-ftpd archives
http://ftp.sterling.com/wuftpd/mail-archive/

------------------------------------------------------------------------
Original message:

I want my ftp users can get directories with the feature TAR+COMPRESS
of wu-ftpd. I have now static versions of gnu-tar and compress.
I do have these binaries in ~ftp/bin, and the file "ftpconversions" is ok.

However, anyone BUT anonymous ftp user can get "directory.tar.Z"

Anonymous FTP user can get any other file : "file.Z" from "file", "file"
from "file.Z", "dir.tar" from "dir" and so on (with extensions .gz or .z)
For other users, "get directory.tar.Z" works well, but for anonymous it
results with an empty file...

I suspect something is wrong in the PATH for anonymous, or a temporary
file, or what else ?

I even tried with root to chroot to ~ftp and "/bin/gtar -c -Z -f...."
(as in ftpconversions) - everything is ok.

Comments are welcome.

Thanks in advance.
-------------------------------------------------------------------------

Answer:

My configuration :
DecUnix 3.2C (C2 not used)
wuftpd-2.4
gzip-1.2.4
gnu-tar-1.11.8
compress-4.0

As told, get the static versions of the binaries (gzip, gtar, compress),
put them in ~ftp/bin, don't forget to make them somewhere accessible for
real users (creating soft links from ~ftp/bin to /usr/local/bin).

Also don't forget to allow tar and compress for users in your ftpaccess
file :
compress yes local remote
tar yes local remote

Use the --use-compress-program parameter for gtar (gnu-tar) in the
ftpconversion file. Here is my ftpconversion :

 :.gz: : :/bin/gzip -cd %s:T_REG|T_ASCII:O_UNCOMPRESS:GUNZIP
 :.z: : :/bin/gzip -cd %s:T_REG|T_ASCII:O_UNCOMPRESS:GUNZIP
 :.Z: : :/bin/gzip -cd %s:T_REG|T_ASCII:O_UNCOMPRESS:GUNZIP
 : : :.Z:/bin/compress -c %s:T_REG:O_COMPRESS:COMPRESS
 : : :.gz:/bin/gzip -9 -c %s:T_REG:O_COMPRESS:GZIP
 : : :.z:/bin/gzip -9 -c %s:T_REG:O_COMPRESS:GZIP
 : : :.tar:/bin/gtar -c -f - %s:T_REG|T_DIR:O_TAR:TAR
 : : :.tar.Z:/bin/gtar -c --use-compress-program=/bin/compress -f -
%s:T_REG|T_DIR:O_COMPRESS|O_TAR:TAR+COMPRESS
 : : :.tar.gz:/bin/gtar -c --use-compress-program=/bin/gzip -f -
%s:T_REG|T_DIR:O_COMPRESS|O_TAR:TAR+GZIP
 : : :.tar.z:/bin/gtar -c --use-compress-program=/bin/gzip -f -
%s:T_REG|T_DIR:O_COMPRESS|O_TAR:TAR+GZIP


My mistake was to use :
/bin/gtar -c --use-compress-program="/bin/gzip" -f - %s
(double quotes for /bin/gzip).
Anyway I don't even understand why it was working for real users but not
anonymous.

Have a good day.

_________________________________________
Magali BERNARD (magali_at_univ-st-etienne.fr)
CRITeR - 23 rue du Dr Paul Michelon
42023 St-Etienne Cedex 2 - FRANCE
Tel: 77.48.50.62
Received on Mon Oct 28 1996 - 10:38:15 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:47 NZDT