← Back to team overview

sslug-teknik team mailing list archive

Proftp bind fejl

 

/usr/local/sbin/proftpd -d 1 -c /etc/proftpd.conf

Jan 24 01:29:40 scumbag proftpd[27352]: scumbag.onscreen.zzz - attempted
bind to 0.0.0.0, port 21 
Jan 24 01:29:40 scumbag proftpd[27352]: scumbag.onscreen.zzz - bind()
failed in inet_create_connection(): Address already in use 
Jan 24 01:29:40 scumbag proftpd[27352]: scumbag.onscreen.zzz - Check the
ServerType directive to ensure you are configured correctly. 


Havde rodet lidt med proftpd.conf; fandt et ex. i mailarkivet:

ServerName              "Onscreen.zzz FTP Server"
ServerType              standalone
DefaultServer           off
DefaultRoot             /home/ftp
UseReverseDNS           off
ServerIdent             off
Port                    21
Umask                   022
DeferWelcome            off
TimeoutLogin            120
TimeoutIdle             600
TimeoutNoTransfer       900
TimeoutStalled          3600
#User                    nobody
#Group                   nobody
User                    ftp
Group                   ftp
AllowOverwrite          on
RequireValidShell       no
ScoreboardPath          /var/run/proftpd
TransferLog             /var/spool/syslog/proftpd/xferlog.legacy

LogFormat               default "%h %l %u %t \"%r\" %s %b"
LogFormat               auth    ".%v [%P] %h %t \"%r\" %s"
LogFormat               write   "%h %l %u %t \"%r\" %s %b"

<Global>
    DisplayLogin        welcome.msg
    DisplayFirstChdir   readme
    AllowOverwrite      yes
    IdentLookups        off
    ExtendedLog         /var/spool/syslog/proftpd/access.log    
    #WRITE,READ write
    ExtendedLog         /var/spool/syslog/proftpd/auth.log AUTH    
    #auth
</Global>

<Limit WRITE>
    AllowAll
</Limit>

<VirtualHost 192.168.1.1>   
    ServerAdmin             root@localhost
    ServerName              "Test Server"
    Port                    21
    MaxLoginAttempts        5
    RequireValidShell       no
    TransferLog             /var/spool/syslog/proftpd/xferlog.www
    MaxClients              5
    DefaultServer           off
    User                    root
    Group                   root
    DefaultRoot             ~
    AllowOverwrite          yes
</VirtualHost>

-- 
Regards,
              Mogens Valentin
    Networking - Security - Programming
  Linux configuration and troubleshooting
http://www.danbbs.dk/~monz - monz@xxxxxxxxx


Follow ups