Diesmal eingeloggt
Proftpd.conf:ServerName "%v"
ServerType standalone
DeferWelcome on
DefaultRoot ~
MultilineRFC2228 on
DefaultServer on
ShowSymlinks on
TimeoutNoTransfer 600
TimeoutStalled 600
TimeoutIdle 1200
DisplayLogin welcome.msg
DisplayFirstChdir .message
ListOptions "-l"
IdentLookups off
UseReverseDNS off
DenyFilter \*.*/
Port 21
MaxInstances 30
# Set the user and group that the server normally runs at.
User proftp
Group proftp
Umask 022 022
AllowOverwrite on
SQLAuthTypes Backend Crypt
SQLAuthenticate users* groups*
SQLConnectInfo ftp@localhost ftp passwd
SQLUserInfo proftpd username password NULL gid homedir NULL
SQLGroupInfo proftpd_groups groupname gid members
SQLMinID 500
SQLHomedirOnDemand off
RootLogin off
RequireValidShell off
SQLLog RETR,STOR insertfileinfo
SQLLog PASS updatecount
SQLNamedQuery insertfileinfo UPDATE "bytes=bytes+'%b' where username='%u'" proftpd
SQLNamedQuery updatecount UPDATE "count=count+1 where username='%u'" proftpd
SQLDefaultUID 5001 # [PROFTP-UID]
SQLDefaultGID 5001 # [PROFTP-GID]
<Directory /home/ftp/>
<Limit WRITE>
AllowGroup admin
DenyAll
</Limit>
</Directory>
SQL: Proftp
CREATE TABLE `proftpd` (
`username` varchar(250) NOT NULL default '',
`domain` varchar(200) NOT NULL default '',
`password` varchar(50) NOT NULL default '',
`gid` int(10) NOT NULL default '0',
`homedir` varchar(250) NOT NULL default '',
`get_ftp_password` varchar(50) NOT NULL default '',
`count` int(6) NOT NULL default '0',
`bytes` bigint(20) NOT NULL default '0',
`master` varchar(250) NOT NULL default '',
PRIMARY KEY (`username`)
) TYPE=MyISAM;
CREATE TABLE `proftpd_groups` (
`groupname` varchar(100) NOT NULL default '',
`gid` smallint(6) NOT NULL default '5500',
`members` varchar(255) NOT NULL default '',
KEY `groupname` (`groupname`)
) TYPE=MyISAM;
Ich muss dazusagen, dass das authentifizieren Problemlos funktioniert, nur schreiben duerfen entweder alle, oder keiner