Увидели сообщение с непонятной ссылкой, спам, непристойность или оскорбление?Воспользуйтесь ссылкой «Сообщить модератору» рядом с сообщением!
0 Пользователей и 1 Гость просматривают эту тему.
# To really apply changes reload proftpd after modifications.AllowOverwrite onAuthAliasOnly on# Choose here the user alias you want !!!!UserAlias root andreyjkeeServerName "siteftp"ServerType standaloneDeferWelcome onMultilineRFC2228 onDefaultServer onShowSymlinks onTimeoutNoTransfer 600TimeoutStalled 100TimeoutIdle 2200DisplayChdir .messageListOptions "-la"RequireValidShell offTimeoutLogin 20RootLogin off# It's better for debug to create log files ;-)ExtendedLog /var/log/ftp.logTransferLog /var/log/xferlogSystemLog /var/log/syslog.log#DenyFilter \*.*/# I don't choose to use /etc/ftpusers file (set inside the users you want to ban, not useful for me)UseFtpUsers off# Allow to restart a downloadAllowStoreRestart on# Port 21 is the standard FTP port, so you may prefer to use another port for security reasons (choose here the port you want)Port 21# To prevent DoS attacks, set the maximum number of child processes# to 30. If you need to allow more than 30 concurrent connections# at once, simply increase this value. Note that this ONLY works# in standalone mode, in inetd mode you should use an inetd server# that allows you to limit maximum number of processes per service# (such as xinetd)MaxInstances 8# Set the user and group that the server normally runs at.User nobodyGroup nogroup# Umask 022 is a good standard umask to prevent new files and dirs# (second parm) from being group and world writable.Umask 022 022PersistentPasswd offMaxClients 2MaxClientsPerHost 2MaxClientsPerUser 2MaxHostsPerUser 2# Display a message after a successful loginAccessGrantMsg "welcome !!!"# This message is displayed for each access good or notServerIdent on "you're at home"# Set /home/FTP-shared directory as home directoryDefaultRoot /home/FTP-shared# Lock all the users in home directory, ***** really important *****DefaultRoot ~MaxLoginAttempts 5#VALID LOGINS<Limit LOGIN>AllowUser andreyjkeeDenyALL</Limit><Directory /home/FTP-shared>Umask 022 022AllowOverwrite off <Limit MKD STOR DELE XMKD RNRF RNTO RMD XRMD> DenyAll </Limit></Directory><Directory /home/FTP-shared/download/*>Umask 022 022AllowOverwrite off <Limit MKD STOR DELE XMKD RNEF RNTO RMD XRMD> DenyAll </Limit></Directory><Directory /home/FTP-shared/upload/>Umask 022 022AllowOverwrite on <Limit READ RMD DELE> DenyAll </Limit> <Limit STOR CWD MKD> AllowAll </Limit></Directory><Directory /home/FTP-shared/site.ru>Umask 022 022AllowOverwrite on <Limit READ RMD DELE> DenyAll </Limit> <Limit STOR CWD MKD> AllowAll </Limit></Directory>
попробуй в defaultroot указать /var/www/
# To really apply changes reload proftpd after modifications.AllowOverwrite onAuthAliasOnly on# Choose here the user alias you want !!!!UserAlias root andreyjkeeServerName "ftpserv"ServerType standaloneDeferWelcome onMultilineRFC2228 onDefaultServer onShowSymlinks onTimeoutNoTransfer 600TimeoutStalled 100TimeoutIdle 2200ListOptions "-la"RequireValidShell offTimeoutLogin 20RootLogin off# It's better for debug to create log files ;-)ExtendedLog /var/log/ftp.logTransferLog /var/log/xferlogSystemLog /var/log/syslog.log#DenyFilter \*.*/# I don't choose to use /etc/ftpusers file (set inside the users you want to ban, not useful for me)UseFtpUsers off# Allow to restart a downloadAllowStoreRestart on# Port 21 is the standard FTP port, so don't use it for security reasons (choose here the port you want)Port 21# To prevent DoS attacks, set the maximum number of child processes# to 30. If you need to allow more than 30 concurrent connections# at once, simply increase this value. Note that this ONLY works# in standalone mode, in inetd mode you should use an inetd server# that allows you to limit maximum number of processes per service# (such as xinetd)MaxInstances 8# Set the user and group that the server normally runs at.User nobodyGroup nogroup# Umask 022 is a good standard umask to prevent new files and dirs# (second parm) from being group and world writable.Umask 022 022PersistentPasswd offMaxClients 8MaxClientsPerHost 8MaxClientsPerUser 8MaxHostsPerUser 8# Display a message after a successful loginAccessGrantMsg "welcome !!!"# This message is displayed for each access good or notServerIdent on "you're at home"# Set /home/FTP-shared directory as home directory#DefaultRoot /home/FTP-shared# Lock all the users in home directory, ***** really important *****#DefaultRoot ~DefaultRoot /var/www/site.ruMaxLoginAttempts 5#VALID LOGINS<Limit LOGIN>AllowUser andreyjkeeDenyALL</Limit><Directory /var/www/site.ru/>Umask 022 022AllowOverwrite on <Limit MKD STOR DELE XMKD RNRF RNTO RMD XRMD> DenyAll </Limit></Directory><Directory /var/www/site.ru/*>Umask 022 022AllowOverwrite on <Limit MKD STOR DELE XMKD RNEF RNTO RMD XRMD> DenyAll </Limit></Directory>
Страница сгенерирована за 0.029 секунд. Запросов: 19.