I have problems with one proftpd server. I use two authentication methods, anonymous and user authentication at the same time.

I modified the proftpd.conf to authenticate against the /etc/proftpd/passwd file, but this police prevent authenticate anonymous users, even I set this directive in my proftpd.conf

Please forgive my english, it´s not my native language

What I want is simple, user authentication and anonymous users at the same time

Here's what I've tried:

  # /etc/proftpd/proftpd.conf 
  UseIPv6           off
  IdentLookups         off
  UseReverseDNS        off

  ServerName        "college"
  ServerType        standalone
  DeferWelcome         off

  MultilineRFC2228     on
  DefaultServer        on
  ShowSymlinks         on

  #TimeoutNoTransfer      600
  #TimeoutStalled         600
  #TimeoutIdle         1200

  TimeoutNoTransfer    100
  TimeoutStalled       50
  TimeoutIdle       200

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

  DenyFilter        \*.*/

  RequireValidShell    off

  Port           21

  PassivePorts                  40000 50000
  AuthOrder                     mod_auth_file.c
  AuthUserFile /etc/proftpd/passwd
  AuthGroupFile /etc/proftpd/group

  <IfModule mod_dynmasq.c>
  # DynMasqRefresh 28800

  MaxInstances         30

  User           proftpd
  Group          nogroup

  Umask          022  022
  AllowOverwrite       off

  TransferLog /var/log/proftpd/xferlog
  SystemLog   /var/log/proftpd/proftpd.log

  <IfModule mod_quotatab.c>
  QuotaEngine off

  <IfModule mod_ratio.c>
  Ratios off

  <IfModule mod_delay.c>
  DelayEngine on

  <IfModule mod_ctrls.c>
  ControlsEngine        off
  ControlsMaxClients    20
  ControlsLog           /var/log/proftpd/controls.log
  ControlsInterval      5
  ControlsSocket        /var/run/proftpd/proftpd.sock

  <IfModule mod_ctrls_admin.c>
  AdminControlsEngine off

  Include /etc/proftpd/conf.d/

  DefaultRoot /home/college/ftp

  <Anonymous /home/college/ftp>
     User                   ftp
     Group         nogroup
     UserAlias              anonymous    ftp
     RequireValidShell      off
     MaxClients        50
     <Limit LOGIN>
     <Directory /home/college/ftp>
     <Limit WRITE>
     <Directory /home/college/ftp/upload>
     <Limit WRITE>
  • When you attempt to login anonymously, what does ProFTPD debug logging, debug level 10 show? – Castaglia Oct 6 '16 at 16:53
  • Respuesta: 220 ProFTPD 1.3.5rc3 Server (College) [x.x.x.x] Comando: USER anonymous Respuesta: 331 Conexión anónima ok, enví­a su email completo como contraseña Comando: PASS ************** Respuesta: 530 Login incorrecto Error: Error crítico Error: No se pudo conectar al servidor – brito9112 Oct 6 '16 at 17:09
  • The level 10 debugging will show a lot more information than that -- including, usually, the reason why the login failed. Perhaps your AuthUserFile does not contain an entry for user "ftp"? – Castaglia Oct 6 '16 at 17:11
  • I create a ftp user with a password and then without a password, but with the 2 gives me the error on the client filezilla – brito9112 Oct 6 '16 at 17:16
  • How did you create that AuthUserFile, exactly? – Castaglia Oct 6 '16 at 17:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.