Автор Тема: ProFTPd  (Прочетена 3988 пъти)

mozly

  • Напреднали
  • *****
  • Публикации: 127
    • Профил
ProFTPd
« -: Nov 21, 2003, 18:30 »
При стартирване на ./proftpd -n (след инсталация на сервер-а ,преглед на конф файла и изчитане на определен брой документи
се получава следното:

Failed binding to 0.0.0.0, port 21: Address already in use
Check the ServerType directive.........

ServerType-a си е standalone както и би трябвало да е при положение ,че не се стартирва чрез inetd.

Please help !
Активен

BMW - MPowering The Generation

mrvoland

  • Напреднали
  • *****
  • Публикации: 382
    • Профил
ProFTPd
« Отговор #1 -: Nov 22, 2003, 19:30 »
хм я си paste тука proftpd.conf да го разгледаме '<img'>
Активен

no pain no gain!

mozly

  • Напреднали
  • *****
  • Публикации: 127
    • Профил
ProFTPd
« Отговор #2 -: Nov 22, 2003, 21:07 »
# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use.  It establishes a single server
# and a single anonymous login.  It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.

ServerName         "ProFTPD"
ServerType         inetd
DefaultServer         on

# Port 21 is the standard FTP port.
Port            21

# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask            022

# To prevent DoS attacks, set the maximum number of child processes
# to 30.  If you need to allow more than 30 concurrent connections
# at once, simply increase this value.  Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd).
MaxInstances         30

# Set the user and group under which the server will run.
User            nobody
Group            nogroup

# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
DefaultRoot ~

# Normally, we want files to be overwriteable.
<Directory />
  AllowOverwrite      on
</Directory>

# A basic anonymous configuration, no upload directories.  If you do not
# want anonymous users, simply delete this entire <Anonymous> section.
<Anonymous ~ftp>
  User            ftp
  Group            ftp

  # We want clients to be able to login with "anonymous" as well as "ftp"
  UserAlias         anonymous ftp

  # Limit the maximum number of anonymous logins
  MaxClients         10

  # We want 'welcome.msg' displayed at login, and '.message' displayed
  # in each newly chdired directory.
  DisplayLogin         welcome.msg
  DisplayFirstChdir      .message

  # Limit WRITE everywhere in the anonymous chroot
  <Limit WRITE>
    DenyAll
  </Limit>
</Anonymous>
Активен

BMW - MPowering The Generation

mrvoland

  • Напреднали
  • *****
  • Публикации: 382
    • Профил
ProFTPd
« Отговор #3 -: Nov 23, 2003, 11:10 »
хммм доста по-различен conf file от моя '<img'> пускам ти го дано да ти помогне...
Примерен код
# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use.  It establishes a single server
# and a single anonymous login.  It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.

ServerName                      "Debian"
ServerType                      standalone
DeferWelcome                    off
#TlsCrlFile                     ftpd-crl.pem
#TlsDhParamFile                 ftpd-dhparam.pem
#TlsCipherList                  ALL:!EXP
#TlsRequired                    off
# don't verify any peer certificates
TlsCertsOk                     off

ShowSymlinks                    on
MultilineRFC2228                on
DefaultServer                   on
ShowSymlinks                    on
AllowOverwrite                  on

TimeoutNoTransfer               600
TimeoutStalled                  600
TimeoutIdle                     1200

DisplayLogin                    welcome.msg
DisplayFirstChdir               .message
LsDefaultOptions                "-l"

DenyFilter                      \*.*/

# Uncomment this if you are using NIS or LDAP to retrieve passwords:
#PersistentPasswd               off

# Port 21 is the standard FTP port.
Port                            21

# To prevent DoS attacks, set the maximum number of child processes
# to 30.  If you need to allow more than 30 concurrent connections
# at once, simply increase this value.  Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances                    30

# Set the user and group that the server normally runs at.
User                            nobody
Group                           nogroup

# Normally, we want files to be overwriteable.
<Directory /*>
  # Umask 022 is a good standard umask to prevent new files and dirs
  # (second parm) from being group and world writable.
  Umask                         022  022

  AllowOverwrite                on
</Directory>

# A basic anonymous configuration, no upload directories.

## <Anonymous ~ftp>
##   User                               ftp
##   Group                              nogroup
##   # We want clients to be able to login with "anonymous" as well as "ftp"
##   UserAlias                  anonymous ftp
##
##   RequireValidShell          off
##
##   # Limit the maximum number of anonymous logins
##   MaxClients                 10
##
##   # We want 'welcome.msg' displayed at login, and '.message' displayed
##   # in each newly chdired directory.
##   DisplayLogin                       welcome.msg
##   DisplayFirstChdir          .message
##
##   # Limit WRITE everywhere in the anonymous chroot
##   <Directory *>
##     <Limit WRITE>
##       DenyAll
##     </Limit>
##   </Directory>
##
##   # Uncomment this if you're brave.
##   # <Directory incoming>
##   #   # Umask 022 is a good standard umask to prevent new files and dirs
##   #   # (second parm) from being group and world writable.
##   #   Umask                          022  022
##   #            <Limit READ WRITE>
##   #            DenyAll
##   #            </Limit>
##   #            <Limit STOR>
##   #            AllowAll
##   #            </Limit>
##   # </Directory>
##
## </Anonymous>
Активен

no pain no gain!

mozly

  • Напреднали
  • *****
  • Публикации: 127
    • Профил
ProFTPd
« Отговор #4 -: Nov 23, 2003, 12:20 »
Получава се абсолютно същото:

Failed binding to 0.0.0.0, port 21: Address already in use
Check the ServerType directive.........

вероятно не е проблема в .conf-a

Знам ли и аз.............. '<img'>
Активен

BMW - MPowering The Generation

spooky

  • Напреднали
  • *****
  • Публикации: 34
    • Профил
ProFTPd
« Отговор #5 -: Nov 23, 2003, 12:42 »
Hi...Imash drug server pusnat na tozi port veroqtno...proveri koi procesi sa pusnati i ako ima drug server go maini i si pusni proftpd-to '<img'>
Активен

n_antonov

  • Напреднали
  • *****
  • Публикации: 1185
    • Профил
    • WWW
ProFTPd
« Отговор #6 -: Nov 23, 2003, 16:19 »
Проверил ли с в /etc/inetd.conf (или xinetd.conf, зависи от това кой демон ползваш за интернет суперсървър) дали inetd не заема този порт?
Активен

-------------------------------------------------------------------------
./debian/rules

mrvoland

  • Напреднали
  • *****
  • Публикации: 382
    • Профил
ProFTPd
« Отговор #7 -: Nov 23, 2003, 19:27 »
мда, пусни едно netstat -ap и гледай коя програма ти заема порта... нищо чудно да се опитваш да пуснеш два пъти proftpd
Активен

no pain no gain!

mozly

  • Напреднали
  • *****
  • Публикации: 127
    • Профил
ProFTPd
« Отговор #8 -: Nov 24, 2003, 00:07 »
Браво !
Оказахте се прави.Имаше сервер инсталиран заедно с дистрибуцията и затова не се получаваше.10х.Ама има друг проблем:
Сега клиента като се вързва всичко минава точко логва се и казва:

------------------------------------------------------------
331 anonymous login ok send your e-mail as your password
PASS:********************
530:Login incorrect
Error:Password not accepted !
------------------------------------------------------------

А при сервер-а в debug mode (./proftpd -n) казва

------------------------------------------------------------
FTP session opened
User FTP (Login failed) : Invalid shell
FTP session closed
------------------------------------------------------------

В /etc/ftpusers си има и "anonymous" и "ftp"

Ся къв е проблема ?
Активен

BMW - MPowering The Generation

mrvoland

  • Напреднали
  • *****
  • Публикации: 382
    • Профил
ProFTPd
« Отговор #9 -: Nov 24, 2003, 00:31 »
RequireValidShell          off

като четеш, чети внимателно... има го по-горе в conf който ти пуснах
Активен

no pain no gain!

spooky

  • Напреднали
  • *****
  • Публикации: 34
    • Профил
ProFTPd
« Отговор #10 -: Nov 24, 2003, 15:37 »
toq anonymous ako ne ti trqbva mnoo mnoo po dobre go maini ot config faila na proftpd v /etc/proftpd.conf mai beshe '<img'>)) are uspeh ':p'
Активен

  • Гост
ProFTPd
« Отговор #11 -: Nov 24, 2003, 17:44 »
/etc/ftpusers
Активен

mozly

  • Напреднали
  • *****
  • Публикации: 127
    • Профил
ProFTPd
« Отговор #12 -: Nov 24, 2003, 19:45 »
Мерси много хора !

Всичко стана ясно и вече всичко работи на 6  '<img'>

Още веднъж ,благодаря !
Активен

BMW - MPowering The Generation

Подобни теми
Заглавие Започната от Отговора Прегледи Последна публикация
proFTPD проблем
Настройка на програми
mrowcp 5 2884 Последна публикация Jun 04, 2009, 12:18
от mrowcp
ProFTPD максимален размер на файла
Настройка на програми
danaildr 1 1716 Последна публикация Apr 09, 2010, 17:52
от danaildr
Логове proftpd
Настройка на програми
milkonoj 3 2012 Последна публикация May 03, 2010, 13:58
от milkonoj
Anonymous достъп до proftpd
Настройка на програми
angie_bg 13 4468 Последна публикация Oct 04, 2015, 20:17
от BRADATA
Проблем при настройката на виртуалните сървъри на proftpd
Настройка на програми
angie_bg 6 2728 Последна публикация Aug 14, 2016, 19:39
от Acho