Вот конфиг сервера:
Код: Выделить всё
grifon:/etc/proftpd # cat proftpd.conf
# sample configuration from http://tutorial.ru for proftpd with mod_sql
ServerName "ProFTPD Ftp Server"
ServerType standalone
DefaultServer on
DeferWelcome off
Port 21
Umask 002
TimeoutLogin 120
TimeoutIdle 600
TimeoutNoTransfer 900
TimeoutStalled 3600
User proftpd
Group proftpd
MaxInstances 50
MaxClientsPerHost 5
AllowRetrieveRestart on
AllowStoreRestart on
AllowOverwrite on
AllowOverride off
RootLogin off
IdentLookups off
UseReverseDNS off
DenyFilter \*.*/
TimesGMT off
DefaultRoot ~
RLimitCPU 600 600
RLimitMemory 64M 64M
RLimitOpenFiles 1024 1024
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"
SystemLog /var/log/proftpd/proftpd.log
#TransferLog /var/log/xferlog
ExtendedLog /var/log/proftpd/proftpd_access.log WRITE,READ write
ExtendedLog /var/log/proftpd/proftpd_auth.log AUTH auth
#ExtendedLog /usr/local/proftpd/var/proftpd_paranoid.log ALL default
<Global>
SQLConnectInfo proftpd@localhost proftpd kvartnikovsergey
SQLAuthTypes Crypt
SQLUserInfo users username password uid gid homedir NULL
RequireValidShell off
SQLGroupInfo groups groupname gid members
SQLAuthenticate users*
SQLLogFile /var/log/proftpd/proftpd_sql.log
SQLNamedQuery getcount SELECT "count, username from users where username='%u'"
SQLNamedQuery updatecount UPDATE "count=count+1 WHERE username='%u'" users
SQLShowInfo PASS "230" "You've logged on %{getcount} times, %u"
SQLLog PASS updatecount
</Global>Логи:
Код: Выделить всё
grifon:/var/log/proftpd # cat proftpd.log
Jan 29 21:27:43 grifon proftpd[7969] grifon.local: Failed binding to 0.0.0.0, port 21: Address already in use
Jan 29 21:27:43 grifon proftpd[7969] grifon.local: Check the ServerType directive to ensure you are configured correctly.
Jan 29 21:27:58 grifon proftpd[7982] grifon.local (77.39.1.218[77.39.1.218]): FTP session opened.
Jan 29 21:27:58 grifon proftpd[7982] grifon.local (77.39.1.218[77.39.1.218]): USER stvgames: Login successful.
Jan 29 18:27:58 grifon proftpd[7982] grifon.local (77.39.1.218[77.39.1.218]): Preparing to chroot to directory '/srv/hosts/www/stvgames.mine.nu'
Jan 29 21:28:52 grifon proftpd[4545] grifon.local: received SIGHUP -- master server reparsing configuration file
Jan 29 18:29:43 grifon proftpd[7982] grifon.local (77.39.1.218[77.39.1.218]): FTP session closed.
Jan 29 21:29:47 grifon proftpd[4545] grifon.local: received SIGHUP -- master server reparsing configuration file
Jan 29 21:32:44 grifon proftpd[8063] grifon.local (77.39.1.218[77.39.1.218]): FTP session opened.
Jan 29 21:32:44 grifon proftpd[8063] grifon.local (77.39.1.218[77.39.1.218]): USER stvgames: Login successful.
Jan 29 18:32:44 grifon proftpd[8063] grifon.local (77.39.1.218[77.39.1.218]): Preparing to chroot to directory '/srv/hosts/www/stvgames.mine.nu'
Jan 29 21:35:10 grifon proftpd[4545] grifon.local: received SIGHUP -- master server reparsing configuration file
Jan 29 21:35:16 grifon proftpd[8078] grifon.local: Failed binding to 0.0.0.0, port 21: Address already in use
Jan 29 21:35:16 grifon proftpd[8078] grifon.local: Check the ServerType directive to ensure you are configured correctly.
Jan 29 18:35:21 grifon proftpd[8063] grifon.local (77.39.1.218[77.39.1.218]): FTP session closed.
Jan 29 21:35:32 grifon proftpd[8079] grifon.local (77.39.1.218[77.39.1.218]): FTP session opened.
Jan 29 21:35:32 grifon proftpd[8079] grifon.local (77.39.1.218[77.39.1.218]): USER stvgames: Login successful.
Jan 29 18:35:32 grifon proftpd[8079] grifon.local (77.39.1.218[77.39.1.218]): Preparing to chroot to directory '/srv/hosts/www/stvgames.mine.nu'
Jan 29 18:35:41 grifon proftpd[8079] grifon.local (77.39.1.218[77.39.1.218]): FTP session closed.
Jan 29 21:35:51 grifon proftpd[4545] grifon.local: ProFTPD killed (signal 15)
Jan 29 21:35:51 grifon proftpd[4545] grifon.local: ProFTPD 1.3.1rc3 standalone mode SHUTDOWN
Jan 29 23:10:27 grifon proftpd[4452] grifon.local: ProFTPD 1.3.1rc3 (devel) (built Чтв Янв 24 23:04:37 MSK 2008) standalone mode STARTUP
Jan 29 23:10:36 grifon proftpd[4453] grifon.local (77.39.1.218[77.39.1.218]): FTP session opened.
Jan 29 23:10:36 grifon proftpd[4453] grifon.local (77.39.1.218[77.39.1.218]): USER stvgames: Login successful.
Jan 29 20:10:36 grifon proftpd[4453] grifon.local (77.39.1.218[77.39.1.218]): Preparing to chroot to directory '/srv/hosts/www/stvgames.mine.nu'
Jan 29 18:53:00 grifon proftpd[4453] grifon.local (77.39.1.218[77.39.1.218]): FTP session idle timeout, disconnected
Jan 29 18:53:00 grifon proftpd[4453] grifon.local (77.39.1.218[77.39.1.218]): FTP session closed.
Jan 29 21:53:26 grifon proftpd[4483] grifon.local (77.39.1.218[77.39.1.218]): FTP session opened.
Jan 29 21:53:26 grifon proftpd[4483] grifon.local (77.39.1.218[77.39.1.218]): USER stvgames: Login successful.
Jan 29 18:53:26 grifon proftpd[4483] grifon.local (77.39.1.218[77.39.1.218]): Preparing to chroot to directory '/srv/hosts/www/stvgames.mine.nu'
Jan 29 18:53:30 grifon proftpd[4483] grifon.local (77.39.1.218[77.39.1.218]): using sendfile capability for transmitting data
Jan 29 18:53:46 grifon proftpd[4483] grifon.local (77.39.1.218[77.39.1.218]): FTP session closed.
Jan 29 21:53:53 grifon proftpd[4485] grifon.local (77.39.1.218[77.39.1.218]): FTP session opened.
Jan 29 21:53:53 grifon proftpd[4485] grifon.local (77.39.1.218[77.39.1.218]): USER stvgames: Login successful.
Jan 29 18:53:53 grifon proftpd[4485] grifon.local (77.39.1.218[77.39.1.218]): Preparing to chroot to directory '/srv/hosts/www/stvgames.mine.nu'
Jan 29 18:54:43 grifon proftpd[4485] grifon.local (77.39.1.218[77.39.1.218]): FTP session closed.
Jan 29 21:54:50 grifon proftpd[4492] grifon.local (77.39.1.218[77.39.1.218]): FTP session opened.
Jan 29 21:54:50 grifon proftpd[4492] grifon.local (77.39.1.218[77.39.1.218]): USER stvgames: Login successful.
Jan 29 18:54:50 grifon proftpd[4492] grifon.local (77.39.1.218[77.39.1.218]): Preparing to chroot to directory '/srv/hosts/www/stvgames.mine.nu'
Jan 29 19:04:44 grifon proftpd[4492] grifon.local (77.39.1.218[77.39.1.218]): FTP session closed.
Jan 29 22:24:51 grifon proftpd[4452] grifon.local: received SIGHUP -- master server reparsing configuration file
Jan 29 22:25:08 grifon proftpd[4721] grifon.local: Failed binding to 0.0.0.0, port 21: Address already in use
Jan 29 22:25:08 grifon proftpd[4721] grifon.local: Check the ServerType directive to ensure you are configured correctly.
Jan 29 22:26:10 grifon proftpd[4725] grifon.local (77.39.1.218[77.39.1.218]): FTP session opened.
Jan 29 22:26:10 grifon proftpd[4725] grifon.local (77.39.1.218[77.39.1.218]): USER stvgames: Login successful.
Jan 29 19:26:10 grifon proftpd[4725] grifon.local (77.39.1.218[77.39.1.218]): Preparing to chroot to directory '/srv/hosts/www/stvgames.mine.nu'
Jan 29 19:32:17 grifon proftpd[4725] grifon.local (77.39.1.218[77.39.1.218]): FTP session closed.И еще один:
Код: Выделить всё
grifon:/var/log/proftpd # cat proftpd_access.log
77.39.1.218 UNKNOWN stvgames [29/Jan/2008:18:53:30 +0000] "RETR /error.log" 226 9078(Правда не знаю чем поможет последний лог но всёже.)