Sorry,
hatte ich vergessen. Hier dir config.
ServerName "FTP server"
ServerType standalone
#ServerType inetd
DefaultServer on
Port 21
Umask 022
MaxInstances 30
TimeoutLogin 120
TimeoutIdle 600
TimeoutNoTransfer 900
TimeoutStalled 3600
User nobody
Group nogroup
<Limit SITE_CHMOD>
DenyAll
</Limit>
#<Directory />
# <Limit all>
# DenyALL
# </Limit>
#</Directory>
#<Directory /*>
# AllowOverwrite on
# HideNoAccess on
#</Directory>
ShowSymlinks off
AllowForeignAddress off
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>
#AllowOverwrite yes
# Turn off Ident lookups
IdentLookups off
debugLevel 9
Serverlog /var/log/proftpd/proftpd.debug.log
#SQLLOG var/log/proftpd/proftpd.sql.log
SQLLOGFILE /var/log/proftpd/proftpd.sql.log
# Logging file/dir access
ExtendedLog /var/log/proftpd/access.log WRITE,READ write
# Record all logins
ExtendedLog /var/log/proftpd/auth.log AUTH auth
SyslogLevel debug
# Paranoia logging level....
ExtendedLog /var/log/proftpd/paranoid.log ALL
</Global>
# Bar use of SITE CHMOD by default
<Limit SITE_CHMOD>
DenyAll
</Limit>
CapabilitiesEngine off
AuthOrder mod_sql.c
SQLAuthTypes Backend
SQLAuthenticate users groups
SQLConnectInfo proftpd@localhost proftpd
SQLUserInfo users userid passwd uid gid homedir shell
<VirtualHost ftp.test.lan>
ServerName "ftp.test.lan"
DefaultRoot /xxx/yyy/ftp.test.lan/www
DefaultChdir /xxx/yyy/ftp.test.lan/www
ServerAdmin
user@test.de MaxLoginAttempts 5
TransferLog /var/log/proftpd/ftp.test.lan/access.log default
RequireValidShell on
AllowOverwrite on
ShowSymlinks on
CapabilitiesEngine off
<Limit LOGIN>
DenyAll
AllowUser ftptest,ftptest2
</Limit>
<Directory /*>
# HideNoAccess on
GroupOwner ftponly
</Directory>
SQLDefaultHomedir /xxx/yyy/ftp.test.lan/www
SQLDefaultGID 65534
SQLDefaultUID 65534
SQLMinUserGID 100
SQLMinUserUID 500
SQLUserInfo users userid passwd uid gid homedir shell
</VirtualHost>
<VirtualHost
www.test2.lan>
ServerName "
www.test2.lan"
DefaultRoot /xxx/yyy/www.test2.lan/www
DefaultChdir /xxx/yyy/www.test2.lan/www
ServerAdmin
user@test2.deAllowOverwrite on
#ShowDotFiles on
<Limit LOGIN>
DenyAll
AllowUser test2
</Limit>
<Directory /*>
# UserOwner test2
GroupOwner ftponly
HideNoAccess on
</Directory>
RequireValidShell on
ShowSymlinks off
MaxLoginAttempts 5
TransferLog /var/log/proftpd/www.test2.lan/access.log default
SQLDefaultHomedir /xxx/yyy/www.test2.lan/www
SQLDefaultGID 65534
SQLDefaultUID 65534
SQLMinUserGID 100
SQLMinUserUID 500
SQLUserInfo users userid passwd uid gid homedir shell
</VirtualHost>