proftp auf Debian Server installieren!

Johannes7146

Goldschnabel
Hallo zusammen,
ich bin noch recht neu in der Linux welt und versuche zZ einen FtpServer ans laufen zu bekommen.
habe bisher proftp installiert und mysql.
Die User verwaltung soll mit mysql gemacht werden.

/etc/proftpd/modules.conf:
Code:
# This file is used to manage DSO modules and features.
#

# This is the directory where DSO modules reside

ModulePath /usr/lib/proftpd

# Allow only user root to load and unload modules, but allow everyone
# to see which modules have been loaded

ModuleControlsACLs insmod,rmmod allow user root
ModuleControlsACLs lsmod allow user *

LoadModule mod_ctrls_admin.c
LoadModule mod_tls.c
LoadModule mod_sql.c
LoadModule mod_ldap.c
LoadModule mod_sql_mysql.c
LoadModule mod_sql_postgres.c
LoadModule mod_quotatab.c
LoadModule mod_quotatab_file.c
LoadModule mod_quotatab_ldap.c
LoadModule mod_quotatab_sql.c
LoadModule mod_radius.c
LoadModule mod_wrap.c
LoadModule mod_rewrite.c

# keep this module the last one
LoadModule mod_ifsession.c

/etc/proftpd/proftpd.conf
Code:
Include /etc/proftpd/modules.conf
UseIPv6                         off
ServerName                      "IPADRESSE"
ServerType                      standalone
DeferWelcome                    off
MultilineRFC2228                on
DefaultServer                   on
ShowSymlinks                    on
TimeoutNoTransfer               600
TimeoutStalled                  600
TimeoutIdle                     1200
DisplayLogin                    welcome.msg
DisplayFirstChdir               .message
ListOptions                     "-l"
#DenyFilter                      *.*/
Port                            21
MaxInstances                    30
User                            proftpd
Group                           nogroup
Umask                           022  022
AllowOverwrite                  on
DefaultRoot ~
TransferLog /var/log/proftpd/xferlog
SystemLog   /var/log/proftpd/proftpd.log
<IfModule mod_tls.c>
TLSEngine off
</IfModule>

<IfModule mod_quota.c>
QuotaEngine on
</IfModule>

<IfModule mod_ratio.c>
Ratios on
</IfModule>

<IfModule mod_delay.c>
DelayEngine on
</IfModule>

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


<IfModule mod_ctrls_admin.c>
AdminControlsEngine on
</IfModule>
SQLAuthTypes Crypt
SQLAuthenticate users*
SQLConnectInfo proftpd@IPADRESSE USERNAME PASSOWRT
SQLDefaultGID 65534
SQLDefaultUID 65534
SQLMinUserGID  100
SQLMinUserUID            500
SQLUserInfo ftpuser username password uid gid homedir shell
SQLLOGFILE /var/log/proftpd/proftpd.sql.log

dann gibt es in der eine db mit dem namen proftpd mit einer tabelle ftpuser
die sieht wiefolgt aus:
Code:
mysql> select * from ftpuser;
+----+----------+------+------+----------+---------+-------+
| id | username | uid  | gid  | password | homedir | shell |
+----+----------+------+------+----------+---------+-------+
| 22 | johannes | NULL | NULL | *****    | NULL    | NULL  |
+----+----------+------+------+----------+---------+-------+
1 row in set (0.00 sec)

Allerdings kann ich mich nicht mit meinem ftpprogramm verbinden bekomme immer die Meldung das die zugangsdaten falsch sind!

/var/log/proftpd/proftpd.log:
Code:
Sep 23 11:55:20 vadmin821 proftpd[4338] vadmin821: Failed binding to 0.0.0.0, port 21: Address already in use
Sep 23 11:55:20 vadmin821 proftpd[4338] vadmin821: Check the ServerType directive to ensure you are configured correctly.
Sep 23 11:55:43 vadmin821 proftpd[4344] vadmin821: Failed binding to 0.0.0.0, port 21: Address already in use
Sep 23 11:55:43 vadmin821 proftpd[4344] vadmin821: Check the ServerType directive to ensure you are configured correctly.
Sep 23 11:55:50 vadmin821 proftpd[4346] vadmin821: Failed binding to 0.0.0.0, port 21: Address already in use
Sep 23 11:55:50 vadmin821 proftpd[4346] vadmin821: Check the ServerType directive to ensure you are configured correctly.
Sep 23 12:00:32 vadmin821 proftpd[4349] vadmin821: Failed binding to 0.0.0.0, port 21: Address already in use
Sep 23 12:00:32 vadmin821 proftpd[4349] vadmin821: Check the ServerType directive to ensure you are configured correctly.
Sep 23 12:00:37 vadmin821 proftpd[4351] vadmin821: Failed binding to 0.0.0.0, port 21: Address already in use
Sep 23 12:00:37 vadmin821 proftpd[4351] vadmin821: Check the ServerType directive to ensure you are configured correctly.
Sep 23 12:03:38 vadmin821 proftpd[4353] vadmin821: Failed binding to 0.0.0.0, port 21: Address already in use
Sep 23 12:03:38 vadmin821 proftpd[4353] vadmin821: Check the ServerType directive to ensure you are configured correctly.
Sep 23 12:03:40 vadmin821 proftpd[4355] vadmin821: Failed binding to 0.0.0.0, port 21: Address already in use
Sep 23 12:03:40 vadmin821 proftpd[4355] vadmin821: Check the ServerType directive to ensure you are configured correctly.
Sep 23 12:04:18 vadmin821 proftpd[4357] vadmin821: Failed binding to 0.0.0.0, port 21: Address already in use
Sep 23 12:04:18 vadmin821 proftpd[4357] vadmin821: Check the ServerType directive to ensure you are configured correctly.

Wie gesagt ich bin noch recht neu in der linuxwelt und das ist der stand, den ich erreicht habe mit der hilft von Mr. Google!
Hoffe mir kann jemand von euch nun weiter helfen.
 
Guck mal bitte nach, ob bei Dir noch ein ftp-server läuft:
Code:
netstat -nlp|grep :21
.

Wenn ja, dann fahre diesen runter und (re)starte den proftp-deamon
Code:
/etc/init.d/proftpd restart
 
ich habe nur diesen einen installiert!
ich bekomme folgendes als rückmeldung:
Code:
vadmin821:~# netstat -nlp|grep :21
tcp        0      0 0.0.0.0:21              0.0.0.0:*               LISTEN     1952/inetd

dashier ist die Ausgabe von Filezilla:
Code:
Status:	Verbinden mit MEINEIP
Status:	Verbunden mit MEINEIP Warten auf Willkommens-Meldung...
Antwort:	220-FTP Server (user 'Kleesch')
Antwort:	220 
Befehl:	USER johannes
Antwort:	331-Password:
Antwort:	331 
Befehl:	PASS *****
Fehler:	Verbindung getrennt
Fehler:	Verbindung kann nicht hergestellt werden!
 
Zuletzt bearbeitet:
/etc/inetd.conf:
Code:
# /etc/inetd.conf:  see inetd(8) for further informations.
#
# Internet server configuration database
#
#
# Lines starting with "#:LABEL:" or "#<off>#" should not
# be changed unless you know what you are doing!
#
# If you want to disable an entry so it isn't touched during
# package updates just comment it out with a single '#' character.
#
# Packages should modify this file by using update-inetd(8)
#
# <service_name> <sock_type> <proto> <flags> <user> <server_path> <args>
#
#:INTERNAL: Internal services
#echo           stream  tcp     nowait  root    internal
#echo           dgram   udp     wait    root    internal
#chargen        stream  tcp     nowait  root    internal
#chargen        dgram   udp     wait    root    internal
#discard        stream  tcp     nowait  root    internal
#discard        dgram   udp     wait    root    internal
#daytime        stream  tcp     nowait  root    internal
#daytime        dgram   udp     wait    root    internal
#time           stream  tcp     nowait  root    internal
#time           dgram   udp     wait    root    internal

#:STANDARD: These are standard services.
ftp     stream  tcp     nowait  root    /usr/sbin/tcpd /usr/sbin/proftpd

#:BSD: Shell, login, exec and talk are BSD protocols.

#:MAIL: Mail, news and uucp services.

#:INFO: Info services

#:BOOT: Tftp service is provided primarily for booting.  Most sites
# run this only on machines acting as "boot servers."

#:RPC: RPC based services

#:HAM-RADIO: amateur-radio services

#:OTHER: Other services
 
Kommentier bitte die Zeile
Code:
ftp     stream  tcp     nowait  root    /usr/sbin/tcpd /usr/sbin/proftpd
aus, speichere die Datei und mach ein
Code:
pkill inetd && /etc/init.d/proftpd restart

edit: Anstatt dieser Prozedur kannst Du versuchen, ob Deine Konfiguration über das starten dex xinet-deamons behoben wird:
Code:
/etc/init.d/xinetd restart
 
Zuletzt bearbeitet:
Zeile ist auskommentiert, prozess gekillt und Server neugestartet...
Filezilla kommt mit der gleichen ausgabe (Verbindung kann nicht hergestellt werden)

/var/log/proftpd/proftpd.log
Code:
Sep 23 12:55:56 vadmin821 proftpd[4422] vadmin821: ProFTPD 1.3.0 (stable) (built Thu Jul 24 09:10:17 UTC 2008) standalone mode STARTUP
Sep 23 12:56:00 vadmin821 proftpd[4427] vadmin821 (195.243.131.130[195.243.131.130]): FTP session closed.
Sep 23 12:56:06 vadmin821 proftpd[4428] vadmin821 (195.243.131.130[195.243.131.130]): FTP session closed.
Sep 23 12:56:12 vadmin821 proftpd[4429] vadmin821 (195.243.131.130[195.243.131.130]): FTP session closed.
 
Code:
echo "debugLevel 6" >> /etc/proftpd/proftpd.conf && /etc/init.d/proftpd restart

Dann nochmal versuchen und das log ansehen.
 
Code:
vadmin821:~# echo "debugLevel 6" >> /etc/proftpd/proftpd.conf && /etc/init.d/proftpd restart
Stopping ftp server: proftpd.
Starting ftp server: proftpd.
vadmin821:~#

/var/log/proftpd/proftpd.log

Code:
Sep 23 13:09:06 vadmin821 proftpd[1365] vadmin821: ProFTPD 1.3.0 (stable) (built Thu Jul 24 09:10:17 UTC 2008) standalone mode STARTUP
Sep 23 13:09:24 vadmin821 proftpd[1371] vadmin821 (195.243.131.130[195.243.131.130]): FTP session closed.
Sep 23 13:09:30 vadmin821 proftpd[1372] vadmin821 (195.243.131.130[195.243.131.130]): FTP session closed.
 
Zurück