1833920 Members
4588 Online
110063 Solutions
New Discussion

ftpd lang setting

 
sengsouvanh
Advisor

ftpd lang setting

Hi,
I have a pb with ftp session :
when I do a ftp to server (UX 10.20, ftp Version 1.7.212.3), with "dir" command, I have date of files in french instead of english...
when I connect directly on system and do a ls -l command it is in english.
Help me to set the ftp lang in english.
Thanks.
6 REPLIES 6
Elmar P. Kolkman
Honored Contributor

Re: ftpd lang setting

Simplest way would be top stop your inetd process, set the LANG and LC variables (I'm not sure which ones are used for this) and restart the inetd.
If this solves the issue, set the variables in the startup file for inetd.
Also checkout your files in /etc/rc.config.d for those variables... All files there are run for every startup script, so it is very likely your problem is caused there...
Every problem has at least one solution. Only some solutions are harder to find.
Fabio Ettore
Honored Contributor

Re: ftpd lang setting

Hi sengsouvanh,

I think that your problem is about LANG setting in /etc/rc.config.d/LANG file.
What does this file contain? Anything about the french language? If yes, you should uncomment lines about it and retry ftp.

I hope this helps you.

Best regards,
Ettore
WISH? IMPROVEMENT!
sengsouvanh
Advisor

Re: ftpd lang setting

I comment the LANG variable but still in french, also do inetd -c
par50h:/etc/rc.config.d> cat LANG
#!/sbin/sh
# @(#) $Revision: 78.1 $
# Language preference. See lang(5), hpnls(5)
#
# LANG: Locale name
#
# Note: if using the default C locale, many commands will execute faster if
# LANG is not set.
#
#export LANG=fr_FR.iso88591
#export LANG
Fabio Ettore
Honored Contributor

Re: ftpd lang setting

It is very strange.
Then you should verify the following things:

1. Is there anything about LANG settings into $HOME/.profile of user that is executing ftp operations?

2. You can try to see /etc/profile too, also if it has anything about LANG settings you should supplied to change it and then a reboot.

Let me know results above.

Best regards,
Ettore
WISH? IMPROVEMENT!
Fabio Ettore
Honored Contributor

Re: ftpd lang setting

...a last test:

3. in the same shell:

# export LANG=C
# inetd -k
# inetd
and then try a new ftp to this system.

Regards,
Ettore
WISH? IMPROVEMENT!
sengsouvanh
Advisor

Re: ftpd lang setting

thanks it works now...I don't where was the error because I do 2 operations :
in /etc/rc.config.d/LANG
export LANG=C

and also inetd -k

Thanks a lot.