Technical article 105750

Anonymous ftp users cannot use .tar and .Z file extensions for file transfers.

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4OpenServer 5.0.5OpenServer 5.0.6

Written · Last revised

Problem

I use the Internet Configuration Manager or the steps listed in
the SCO Openserver Networking Guide, page 119, to set up anonymous
ftp. I want to allow users to specify files in the format:
filename.tar
-or-
filename.Z
-or-
filename.tar.Z

to transfer files in tar and/or compressed format. However, for some reason, this feature is not automatically enabled when I set up my anonymous ftp site. My /etc/ftpaccess file lists the tar and compress utilities available to all. The documentation did not list any other steps needed to allow these features, but when anonymous users try to transfer files with the .tar.Z extension, they get the message:

550 local error:conversion program not found cannot TAR+COMPRESS files

How can I enable these features for my anonymous ftp users?

Cause

All files, including executable programs, which will be used by the
FTP session, must reside beneath the anonymous FTP directory.  The
commands listed in the Networking Guide for configuring anonymous FTP
do not include the commands needed to move the tar and compress files
beneath this directory.
Configuring anonymous ftp via the Internet Manager will not move the
neccessary tar and compress files beneath the anonymous FTP directory
either.  The user must do this by hand in order to support the .tar
and .Z file extensions from their anonymous FTP site.

Solution

To enable anonymous users to transfer files using the .tar and .Z
file extensions, you must make the tar and compress programs
available to anonymous ftp sessions.  Anonymous FTP sessions run
within a "chroot" environment, that is, only files beneath the ftp
user's home directory can be accessed.  When the tar and compress
utilities are available, their respective file extensions can be
used for file stransfers.  To move the needed files to the correct
directories, type the following commands:
# ksh
# mkdir ~ftp/usr/bin
# cp /usr/bin/tar ~ftp/usr/bin
# cp /usr/bin/compress ~ftp/usr/bin
# cp /bin/sh ~ftp/bin
# cp /bin/pwd ~ftp/bin
Anonymous ftp users will now be able to transfer files using the
tar and compress features.

From the Xinuos technical article database, record 105750. Reproduced with permission. The original is at www.sco.com/ta/105750, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.