Уважаемые есть к Вам вопрос настроил связку отдалкиваясь от статьи http://www.lissyara.su/?id=1144
Появился вопрос организовать просмотр с при помощи браузера и скачивать с него определенный файл .. сейчас у меня ни вышло ..
Подскажите может надо какую то переменную или типа того ?
Сейчас при нажатии на тот или иной файл что в папке, он постоянно запрашивает пароль, и все равно в итоге не скачивает файл.
Код: Выделить всё
## Proftpd ##
#################################################################
ServerName "Shans FTP Server"
ServerType standalone
DefaultServer on
ScoreboardFile /var/run/proftpd.scoreboard
RootLogin off
ServerIdent off
ServerAdmin admin@ftl.com.ua
Port 21
Umask 022
PassivePorts 49100 49110
##################################################################
######################################################################################################################
MaxInstances 20
MaxClients 15 "It is too much connections with a server"
MaxClientsPerHost 3 "%m the client are already connected from your host, it is not authorized any more"
MaxLoginAttempts 3 "It is too much attempts to enter"
TransferRate RETR,STOR,APPE 150 user !dolphin
CommandBufferSize 512
#######################################################################################################################
##################################
TimeoutStalled 640
TimeoutLogin 120
TimeoutIdle 180
TimeoutNoTransfer 360
##################################
##########################################
User ftp
Group ftp
##########################################
################################
#CharsetLocal KOI8-R
#CharsetRemote CP1251
################################
##################################################################
#<Limit LOGIN>
#Order allow,deny
#Allow from 192.168.0.0/16 #
#Deny from all
#</Limit>
##################################################################
<Global>
AllowOverwrite yes
IdentLookups off
ExtendedLog /var/log/ftp/access.log WRITE,READ write
ExtendedLog /var/log/ftp/auth.log AUTH auth
</Global>
<IfModule mod_clamav.c>
ClamAV on
</IfModule>
##################################################################
##################################################################
SQLAuthTypes Plaintext
##################################################################
SQLAuthenticate users
##################################################################
SQLConnectInfo ftp@localhost:3306 ftp .hfijcnrf
##################################################################
SQLUserInfo `users_table` `username` `password` `uid` `gid` \
`homedir` `shell`
##################################################################
RequireValidShell off
###########################################################################
SQLLogFile /var/log/ftp/proftpd_sql.log
###########################################################################
SQLLog PASS counter_login
SQLNamedQuery counter_login UPDATE "`last_login`=UNIX_TIMESTAMP(), \
`login_count`=`login_count`+1 WHERE \
`username`='%u'" `users_table`
###########################################################################
SQLLog ERR_PASS counter_err
SQLNamedQuery counter_err UPDATE "`last_err_login`=UNIX_TIMESTAMP(), \
`err_login_count`=`err_login_count`+1 WHERE \
`username`='%U'" `users_table`
#############################################################################
SQLLog RETR,STOR log_story_transfer
SQLNamedQuery log_story_transfer INSERT "'',\
UNIX_TIMESTAMP(),'%u',\
'%f', '%b', '%h', \
'%a', '%m', '%T'" \
`xfer_table`
#############################################################################
SQLLOG ERR_RETR,ERR_STOR,ERR_DELE,ERR_RMD,ERR_RNTO\
log_err_modify
SQLNamedQuery log_err_modify INSERT "'',\
UNIX_TIMESTAMP(),\
'%u', '%f', '%h', \
'%a', '%m'" `xfer_errors`
##################################################################################################
UseReverseDNS off
IdentLookups off
##################################################################
#DefaultRoot ~
##################################################################
DefaultRoot ~ !dolphin
#####################################################################
<Directory /var/webserver/admins/ftp/>
AllowOverwrite on
<Limit Write>
AllowAll
</Limit>
<Limit READ>
AllowAll
</Limit>
</Directory>
#####################################################################
####################################################################################
##<Anonymous /usr/home/ftp>
##User ftp
#################################################
##Group ftp
#################################################
##UserAlias anonymous ftp
########################################################
##MaxClients 10 "Sorry, max %m users - try again later"
##<Limit WRITE>
##DenyAll
##</Limit>
##</Anonymous>
####################################################################
#######################################################################################
######################################################################
DisplayLogin /usr/local/etc/ftp/welcome.msg
DisplayConnect /usr/local/etc/ftp/ftp_connect.msg
AccessDenyMsg "ATTENTION!!! ALL CONNECTIONS LOGED"
AccessGrantMsg "Now apload/download files"
DisplayGoAway "Go Away"
######################################################################
###############################################################################
# Logging options
SyslogLevel notice
SystemLog /var/log/ftp/proftpd-error.log
TransferLog /var/log/ftp/proftpd-tranfer.log
ExtendedLog /var/log/ftp/proftpd-extended.log auth,read
###############################################################################
###############################################################################
# Some logging formats
LogFormat default "%h [%a] %l %u %t \"%r\" %s %f %b"
LogFormat auth "%v [%P] %h [%a] %t \"%r\" %s"
LogFormat read "%v [%P] %h [%a] %t \"%r\" %s %f %b"
LogFormat write "%h [%a] %l %u %t \"%r\" %s %f %b"
###############################################################################
unix#