use ftpasswd to create virtual account
please visit http://www.castaglia.org/proftpd/


ServerName "ProFTPD"
ServerType standalone
DefaultServer off
Port 0
Umask 022
MaxInstances 30
User nobody
Group nobody

# because i need from virtualhost login
<Limit LOGIN>
DenyAll
</Limit>

<Global>
Umask 002
</Global>

<virtualhost ftp.aaa.com>
servername "gisanfu test ftp server"
DefaultServer off

# run this virtualhost section's user/group
user proftpduser
group proftpduser

authorder mod_auth_file.c mod_auth_pam.c*
authuserfile /home/realuser1/ftpd.passwd
authgroupfile /home/realuser1/ftpd.group

defaultroot /home/realuser1/ftp

#serverlog /var/log/ftp.aaa.com

# delete => "a _ d"
# upload => "b _ i"
# download => "b _ o"
TransferLog /var/log/ftp.aaa.com

# maxclients 1
# maxloginattempts 1

# bandwidth control(Kbytes/s)
# TransferRate [STOR|RETR] [speed] User [user-a|,user-b|,..] Group [group-a|,group-b|,..]
# stor => upload limit
# retr => download limit
TransferRate STOR 10 user aaa
TransferRate RETR 10 user aaa

</VirtualHost>
創作者介紹

創造心理的感動

gisanfu 發表在 痞客邦 PIXNET 留言(0) 人氣()