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/lsand 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.script3) Edit /etc/inetd.conf and locate the line that reads:
ftp stream tcp nowait root /etc/ftpd ftpd
-aand change it to read:ftp stream tcp nowait root /etc/ftpd.script
ftpd.script -a4) Restart inetd using the command:kill -1 `cat /etc/inetd.pid`You should now have an FTP Server that responds correctly to client requests.