Page 1 of 1

ProFTPd Problem

Posted: 2004-09-25 16:25
by nautilusiii
Hi,

ich kann meinen proftpd nicht starten und erhalte immer die Meldung:

[...] address/port (meineip:21) already in use by "Gentoo"

Meine Konfig:

# 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 "Gentoo"
ServerType standalone
RequireValidShell off
#AuthPAM off
#AuthPAMConfig ftp

DeferWelcome on

ShowSymlinks on
MultilineRFC2228 on
DefaultServer on
ShowSymlinks on
AllowOverwrite on

TimeoutNoTransfer 600
TimeoutStalled 600
TimeoutIdle 1200

DisplayLogin welcome.msg
DisplayFirstChdir .message
#LsDefaultOptions "-l"
ListOptions "-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 proftpd
Group proftpd

# 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>

<VirtualHost http://www.domain.de>
ServerName "www.domain.de"
ServerAdmin info@domain.de
MaxClients 5
MaxLoginAttempts 3
RequireValidShell no
DefaultRoot /var/www/localhost/htdocs/domain.de/
User andreas
AllowOverwrite yes
</VirtualHost>

Ein netstat --inet -an zeigt auf port 21 nichts an, ein grep -A | ps proftp liefert nichts und ein proftpd.pid gibts auch keins.

Ideen ?

Re: ProFTPd Problem

Posted: 2004-09-25 16:56
by captaincrunch
lsof -i :21

Re: ProFTPd Problem

Posted: 2004-09-25 17:29
by nautilusiii
Kommt exakt nichts zurück:

serv2026 root # lsof -i :21
serv2026 root #

Weitere Ideen ?

Re: ProFTPd Problem

Posted: 2004-09-25 17:35
by nautilusiii
Evtl. sollte ich etwas genauer sein mit der Fehlermeldung:

serv2026 root # proftpd
- error: "www.domain.de" address/port (meineip:21) already in use by "Gentoo"
serv2026 root #

Re: ProFTPd Problem

Posted: 2004-09-25 19:40
by nautilusiii
Mh,

wenn ich den Port auf 1025 (willkürlich) änder lkann ich proftpd starten.
Auf Port 21 geht nichts...

Wie gesagt, standalone mode und ich starte über proftpd Kommando, nicht über ein inet.d script...

Irgenwelche Ideen ?

Re: ProFTPd Problem

Posted: 2004-09-25 19:59
by Joe User

Code: Select all

netstat -peatun

Re: ProFTPd Problem

Posted: 2004-09-25 20:22
by nautilusiii

Code: Select all

serv2026 proftpd # netstat -peatun
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       User       Inode      PID/Program name
tcp        0      0 0.0.0.0:993             0.0.0.0:*               LISTEN      0          169404     4065/couriertcpd
tcp        0      0 0.0.0.0:995             0.0.0.0:*               LISTEN      0          169353     4004/couriertcpd
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      0          168837     3709/mysqld
tcp        0      0 0.0.0.0:110             0.0.0.0:*               LISTEN      0          83104      4356/couriertcpd
tcp        0      0 127.0.0.1:783           0.0.0.0:*               LISTEN      0          425030     15341/spamd.pid -a
tcp        0      0 0.0.0.0:143             0.0.0.0:*               LISTEN      0          83063      4303/couriertcpd
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      0          401431     28873/apache
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      0          455338     819/sshd
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN      0          462778     3483/exim
tcp        0      0 xxx.195.47.6:22         xxx.84.195.174:3397     ESTABLISHED 0          456017     1217/sshd: root@not
tcp        0   1136 xxx.195.47.6:22         xxx.84.195.174:3446     ESTABLISHED 0          456710     1345/0
Nichts auf 21, oder bin ich blind ?

[EDIT by Joe User: Code-Tags hinzugefügt]