Страница 1 из 1

proftpd не видит locale

Добавлено: 2010-08-04 14:53:02
CheGev80
Поставил из тестового репозитория Debian lenny, получилось следующие:

Код: Выделить всё

Compile-time Settings:
  Version: 1.3.3a (maint)
  Platform: LINUX [Linux 2.6.26-2-686 i686]
  Built: Mon Jul 5 2010 08:48:09 UTC
  Built With:
    configure  '--prefix=/usr' '--with-includes=/usr/include/postgresql:/usr/include/mysql' '--mandir=/usr/share/man' '--sysconfdir=/etc/proftpd' '--localstatedir=/var/run' '--libexecdir=/usr/lib/proftpd' '--enable-sendfile' '--enable-facl' '--enable-dso' '--enable-autoshadow' '--enable-ctrls' '--with-modules=mod_readme' '--enable-ipv6' '--enable-nls' '--build' 'i486-linux-gnu' '--with-shared=mod_unique_id:mod_site_misc:mod_load:mod_ban:mod_quotatab:mod_sql:mod_sql_mysql:mod_sql_postgres:mod_sql_sqlite:mod_sql_odbc:mod_dynmasq:mod_quotatab_sql:mod_ldap:mod_quotatab_ldap:mod_ratio:mod_tls:mod_rewrite:mod_radius:mod_wrap:mod_wrap2:mod_wrap2_file:mod_wrap2_sql:mod_quotatab_file:mod_quotatab_radius:mod_facl:mod_ctrls_admin:mod_vroot:mod_exec:mod_sftp:mod_sftp_pam:mod_sftp_sql:mod_shaper:mod_sql_passwd:mod_ifsession' 'build_alias=i486-linux-gnu' 'CFLAGS=-O2 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_OPENSSL -DUSE_LDAP_TLS ' 'LDFLAGS=' 'CPPFLAGS='

  CFLAGS: -O2 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_OPENSSL -DUSE_LDAP_TLS  -Wall
  LDFLAGS: -L$(top_srcdir)/lib
  LIBS: -lacl  -lssl -lcrypto -lcap  -lpam -lsupp -lcrypt -ldl  -ldl -lz

  Files:
    Configuration File:
      /etc/proftpd/proftpd.conf
    Pid File:
      /var/run/proftpd.pid
    Scoreboard File:
      /var/run/proftpd.scoreboard
    Header Directory:
      /usr/include/proftpd
    Shared Module Directory:
      /usr/lib/proftpd

  Features:
    + Autoshadow support
    + Controls support
    + curses support
    - Developer support
    + DSO support
    + IPv6 support
    + Largefile support
    - Lastlog support
    + ncurses support
    + NLS support
    + OpenSSL support
    + POSIX ACL support
    + Shadow file support
    + Sendfile support
    + Trace support

  Tunable Options:
    PR_TUNABLE_BUFFER_SIZE = 1024
    PR_TUNABLE_GLOBBING_MAX_MATCHES = 100000
    PR_TUNABLE_GLOBBING_MAX_RECURSION = 8
    PR_TUNABLE_HASH_TABLE_SIZE = 40
    PR_TUNABLE_NEW_POOL_SIZE = 512
    PR_TUNABLE_SCOREBOARD_BUFFER_SIZE = 80
    PR_TUNABLE_SCOREBOARD_SCRUB_TIMER = 30
    PR_TUNABLE_SELECT_TIMEOUT = 30
    PR_TUNABLE_TIMEOUTIDENT = 10
    PR_TUNABLE_TIMEOUTIDLE = 600
    PR_TUNABLE_TIMEOUTLINGER = 30
    PR_TUNABLE_TIMEOUTLOGIN = 300
    PR_TUNABLE_TIMEOUTNOXFER = 300
    PR_TUNABLE_TIMEOUTSTALLED = 3600
    PR_TUNABLE_XFER_SCOREBOARD_UPDATES = 10

Вот конфиг(не полный):

Код: Выделить всё

#
# /etc/proftpd/proftpd.conf -- This is a basic ProFTPD configuration file.
# To really apply changes reload proftpd after modifications.
#

# Includes DSO modules
Include /etc/proftpd/modules.conf

# Set off to disable IPv6 support which is annoying on IPv4 only boxes.
UseIPv6                         off
# If set on you can experience a longer connection delay in many cases.
IdentLookups                    off

ServerName                      "Ftp Server"
ServerType                      standalone
DeferWelcome                    off

MultilineRFC2228                on
DefaultServer                   on
ShowSymlinks                    on

TimeoutNoTransfer               600
TimeoutStalled                  600
TimeoutIdle                     1200

DisplayLogin                    welcome.msg
DisplayChdir                    .message true
ListOptions                     "-l"

DenyFilter                      \*.*/

UseEncoding on
UseEncoding UTF-8 cp1251
LangDefault ru_RU
LangPath /usr/share/locale
Получается следущая картина при запуске:

Код: Выделить всё

router - mod_lang/0.9: skipping possible language 'it': not supported by setlocale(3); see `locale -a'
router - mod_lang/0.9: skipping possible language 'ru': not supported by setlocale(3); see `locale -a'
router - mod_lang/0.9: skipping possible language 'ja_JP': not supported by setlocale(3); see `locale -a'
router - mod_lang/0.9: skipping possible language 'en_US': not supported by setlocale(3); see `locale -a'
router - mod_lang/0.9: skipping possible language 'fr_FR': not supported by setlocale(3); see `locale -a'
router - mod_lang/0.9: skipping possible language 'zh_TW': not supported by setlocale(3); see `locale -a'
router - mod_lang/0.9: skipping possible language 'bg_BG': not supported by setlocale(3); see `locale -a'
router - mod_lang/0.9: skipping possible language 'ko_KR': not supported by setlocale(3); see `locale -a'
router - mod_lang/0.9: skipping possible language 'zh_CN': not supported by setlocale(3); see `locale -a'
router - mod_lang/0.9: LangDefault 'ru_RU', configured for server 'Ftp Server', is not a supported language, removing
Типа не поддерживается рус язык.

Код: Выделить всё

router:/etc/proftpd# locale -a
C
POSIX
ru_RU.cp1251
ru_RU.utf8
Со стороны клиента фтп все нормально, до поры, когда перезапустишь службу proftpd, служебные сообщения от сервера клиету
выводятся ввиде иероглифов. Помогает только полная перегрузка сервера.

Код: Выделить всё

startdir=
220 ProFTPD 1.3.3a Server (Ftp Server) [192.168.0.*]
USER ftp1
331 оЕПВИПДЙН РБТПМШ ДМС РПМШЪПЧБФЕМС ftp1
PASS ***********
230 рПМШЪПЧБФЕМШ ftp1 РПДЛМАЮЈО
SYST
215 UNIX Type: L8
FEAT
211-Features:
 MDTM
 MFMT
 TVFS
 UTF8
 MFF modify;UNIX.group;UNIX.mode;
 MLST modify*;perm*;size*;type*;unique*;UNIX.group*;UNIX.mode*;UNIX.owner*;
 SITE MKDIR
 SITE RMDIR
 SITE UTIME
 LANG en-US.UTF-8;en-US
 SITE SYMLINK
 REST STREAM
 SIZE
211 лПОЕГ
Connect ok!
Помогите куда капнуть?

Re: proftpd не видит locale

Добавлено: 2010-10-03 21:23:47
Alex Keda
это всё кривые линуксы
во фре таких глюков нет