Technical article 125156

The ftpd(ADMN) server does not work correctly on systems with some locales.

OpenServer 5.0.7

Written · Last revised

Problem

I have installed my SCO OpenServer Enterprise system with the default locale set to French or German. If I connect via ftp to the server, I cannot list or get files from the system. If the locale is set to French then the ls command returns no files, the dir command reports the error:

150 par exemple: ASCII@/bin/ls

and when I quit, I get the error message:

226 login incorrect

Cause

There is a problem with the ftpd(ADMN) daemon provided with SCO OpenServer release 5.0.7.

Solution

This problem has been reported to SCO Engineering and will be fixed in a future release of the product.

One way to workaround the problem is to start the ftp daemon in the C locale. To do this, as root:

1) Create a file called /etc/ftpd.script that contains the following:

#!/bin/sh
LANG=C; export LANG
LC_ALL=C; export LC_ALL
/etc/ftpd $*

2) Change the permissions on the file as follows:

chmod 700 /etc/ftpd.script

3) Edit /etc/inetd.conf and locate the line that reads:

ftp     stream  tcp     nowait  root    /etc/ftpd    ftpd
-a
and change it to read:
ftp    stream  tcp   nowait  root  /etc/ftpd.script
ftpd.script -a
4) Restart inetd using the command:
kill -1 `cat /etc/inetd.pid`

You should now have an FTP Server that responds correctly to client requests.

From the Xinuos technical article database, record 125156. Reproduced with permission. The original is at www.sco.com/ta/125156, 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.