Проблема вот в чем, если запускать не демон, а собственно /usr/sbin/proftpd, то все работает с вот этим конфигом:
proftpd.conf:
# This is the ProFTPD configuration file
ServerName “ProFTPD server”
ServerType standalone
#ServerIdent on “FTP Server ready.”
#ServerAdmin root@testdomain
DefaultServer on
# Cause every FTP user except adm to be chrooted into their home directory
# Aliasing /etc/security/pam_env.conf into the chroot allows pam_env to
# work at session-end time (http://bugzilla.redhat.com/477120)
#VRootEngine on
DefaultRoot ~
#VRootAlias etc/security/pam_env.conf
DenyFilter \*.*/
# Use pam to authenticate (default) and be authoritative
AuthPAMConfig proftpd
AuthOrder mod_auth_pam.c* mod_auth_unix.c
# If you use NIS/YP/LDAP you may need to disable PersistentPasswd
#PersistentPasswd off
#AuthPAMAuthorative off
# Don’t do reverse DNS lookups (hangs on DNS problems)
UseReverseDNS off
Port 21
# Set the user and group that the server runs as
User nobody
Group nobody
MaxInstances 20
UseSendfile off
# Define the log formats
LogFormat default “%h %l %u %t \”%r\” %s %b”
LogFormat auth “%v [%P] %h %t \”%r\” %s”
TransferLog /var/log/proftpd/proftpd-transfer.log
SystemLog /var/log/proftpd/proftpd-error.log
#<IfDefine DYNAMIC_BAN_LISTS>
#LoadModule mod_ban.c
#BanEngine on
#BanLog /var/log/proftpd/ban.log
#BanTable /var/run/proftpd/ban.tab
# If the same client reaches the MaxLoginAttempts limit 2 times
# within 10 minutes, automatically add a ban for that client that
# will expire after one hour.
#BanOnEvent MaxLoginAttempts 2/00:10:00 01:00:00
# Allow the FTP admin to manually add/remove bans
#BanControlsACLs all allow user ftpadm
#</IfDefine>
<Global>
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable
Umask 022
# Don’t do ident queries (hangs when the port is filtered)
IdentLookups off
# Allow users to overwrite files and change permissions
AllowOverwrite yes
<Limit ALL SITE_CHMOD>
Allow all
</Limit>
</Global>
Но стоит запустить его через service proftpd start выдает следующее
fatum@fatum-laptop:~$ ftp 192.168.56.3
Connected to 192.168.56.3.
220 ProFTPD 1.3.2 Server (“ProFTPD) [::ffff:192.168.56.3]
Name (192.168.56.3:fatum): fatum
331 Password required for fatum
Password:
530 Login incorrect.
Login failed.
421 Service not available, remote server has closed connection
ftp> Отсюда сделал вывод, что через service используется еще какой-то механизм запуска. из-за которого proftpd не видит пользователей, но вот какой... Помогите, очень прошу.
На ошибки в proftpd.conf реагирует как /usr/sbin/proftpd (пишет в какой строке ошибка), так и service proftpd start (пишет сбой). Этот конфиг - правильный. Его принимает без ошибок как /usr/sbin/proftpd/ так и service proftpd start, но законнектится при запуске через service proftpd start я так и не могу :(