ftpconversions.4 (2010 09)
f
ftpconversions(4) ftpconversions(4)
NAME
ftpconversions - ftpd conversions database
SYNOPSIS
/etc/ftpd/ftpconversions
DESCRIPTION
The conversions known by ftpd and their attributes are stored in an ASCII file that is structured as
below. Each line in the file provides a description for a single conversion. Fields are separated by colons
(:).
%s:%s:%s:%s:%s:%s:%s:%s
12345678
Field Description
1 strip prefix
2 strip postfix
3 addon prefix
4 addon postfix
5 external command
6 types
7options
8 description
strip postfix and addon postfix can be the file extensions
.Z or
.tar or .gz or .tar[.Z,.gz]. The file
extensions the ftp server supports and the action that the ftp server performs is summarized in the table
below. This feature is supported only when using the
get command.
True Filename Specified Filename Action
filename.Z filename Decompress file before transmitting
filename filename.Z Compress filename before transmitting
filename filename.tar Tar filename before transmitting
filename filename.tar.Z Tar and compress filename
before transmitting
external command field is used to specify the path of the program/script to be used to perform the action
specified for the different file extensions as described in the above table.
types field indicates the flags that must be checked before compressing, decompressing, tarring and
untarring the file requested by the
get command.
options field specifies the options for the program/script specified in the external command field.
description is a short description of each conversion.
NOTE: The HP-UX
tar command does not support any option to do tar+compress or
tar+gzip.If
the user wants to perform any such action, he/she must then write his/her own program/script to do it and
specify the pathname of the program/script in the external command field in the
/etc/ftpd/ftpconversions file. Also a copy of the programs/scripts used to perform the conver-
sions and the respective libraries used by the programs/scripts must be copied into the home directory of
each of the anonymous and guest user accounts for the anonymous and guest users to be able to
perform on-the-fly conversions.
WARNINGS
The conversions mechanism does not currently support the strip prefix and addon prefix fields.
FILES
etc/ftpd/ftpconversions
AUTHOR
ftpconversions was developed by the Washington University, St. Louis, Missouri.
SEE ALSO
ftpd(1M), ftpaccess(4).
HP-UX 11i Version 3: September 2010 − 1 − Hewlett-Packard Company 1