владельцая я поставил chown -R user:user /home/user я поставил, все остальное выставил в таблицу правильно
Код: Выделить всё
SITE CHMOD 640 prtl4
550 CHMOD 640 prtl4: Forbidden command argument
SITE CHMOD 660 prtl4
550 CHMOD 660 prtl4: Forbidden command argument
SITE CHMOD 644 prtl4
550 CHMOD 644 prtl4: Forbidden command argument
SITE CHMOD 740 prtl4
550 CHMOD 740 prtl4: Forbidden command argument
Код: Выделить всё
SITE CHMOD 750 /www/data/22/prtl4
550 CHMOD 750 /www/data/22/prtl4: Forbidden command argument
Код: Выделить всё
ftp:*:1005:1005:Anonymous FTP Admin:/home/ftp:/nonexistent
Код: Выделить всё
# ?????? proftpd - 2006-02-19
#TCPServiceName my
#TCPAccessFiles /etc/host.allow /etc/my.deny
# ??? ??????? - ???????????? ????????????? ????????
ServerName "Main FTP servant :)"
#ServerName thedj.org.ua
# ??? ??????? (???? ?? ??? ?????? ???????, ? ??? ??? ???????,
# standalone/inetd - ??? ??? ????? inetd)
ServerType standalone
DefaultTransferMode binary
#ServerType inetd
# ????? ????????? ????????? ?????: ???? ?????? ??????????? ?? ?? ???
# ? ?? IP ??? ?? ??????????? ????, ?? ????????? ? ???????, ?? ???
# ????????? ? `off` ?? ??????? ?????, ???? ?? ??????????? `on` ??
# ?? ????? ???????? `???????? ??-?????????`
#DefaultServer off
DefaultServer on
# e-mail ?????????????? (?? ???? ??? ??????? ???????????? ??? ?????
# ????????? ?????? - ?? ? ????? ???? ?????? ??? ?????????? ?
# ???????????? ???????)
ServerAdmin ug@ukr.net
# ????? ??? ???????? ???? ? ???????
ScoreboardFile /var/run/proftpd.scoreboard
AllowFilter ^[-A-Za-z0-9_\.(),/]*$ # ?? ?????? ?????? ;)
AllowForeignAddress off # ????????? ????????? ??????-??????
# ???? ?? ??????? ???????? ??????
#PassivePorts 49151 65535
Port 21
AllowOverride off # ????????? ????????????? .ftpaccess
MaxClientsPerHost 2
MaxClients 20
#MaxClientsPerUser
#MaxConnectionRate 50000
#TCPAccessFiles /etc/hostsftp
# ????? ? ??????? ????????? ????? ????? (?? ?????? ????? - ????? ??????????
# ?? ????? ????????, ????? ??? ????????? ?? 777 - ?.?. ? ????? ?????? ?????????
# ????? 755)
#Umask 027
# tcpReceiveWindow ???? (32192)
# tcpSendWindow ???? (32192)
#RequireValidShell no # ?? ????, ??????? ?????? ? ftp, ????? shell
# ???????????? ????? `?????` (???????? ?????? ? standalohe ??????)
# ?????????? ??? ?????? ?? ???? ???? `????? ? ????????????` ?? ?
# ?? ?????????? ??????? ??????? :)
MaxInstances 50
# ???? ?? ???????? ???????? ??????
User ftp
# ??????, ??? ??????? ???????? ??????
Group ftp
# ??? ??????????? (?? ????? ???? - ? ????? ???? ????????
# ?????? ? ?? - ? ?????? ?????? - ???????? ???????)
SQLAuthTypes Plaintext
# ???? ? ??? ??????????????? - on - ???? ? ??? :)
# ?? - ???? ????????? `on` ?? ?? ??????? ? ?? ?? ????????.
# ??? ?????? ???????. ?????? ???????? `users`
SQLAuthenticate users
# ???? ??? ?????????? ? MySQL ????????:
# ???_????_??????@????_???_MySQL:???? ???_???????????? ??????
SQLConnectInfo ftp@localhost:3306 ftp ii
# ? ????? ??????? ?????? ???? ?????? - ?????? ????, ???
# ??? ???????, ??? ????? ????????????
SQLUserInfo `users_table` `username` `password` `uid` `gid` \
`homedir` `shell`
# ?????? ?? ???? ? ????? (??? ????, ????? ?? ??? ???????????),
# `????????` shell ????????? ? /etc/shells
RequireValidShell off
# ??? ???? ?????? ? SQL
SQLLogFile /var/log/proftpd.log
# ??? ??? ??? ?????? ???????? ? ??????? ????? ?? ??? ?
# ?? MySQL ?????? ??????????? ?? ?????? ??????? :)
# ?????????? ??????? ?????? ? ??. ????? ????? ????? - ???????
# ?????????? ?????, ? ????????? ??? ?? ?????? ?????????
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`
# ???????? ??? ????????? ? ?????? ? ???????:
# ??????????
# %u - ??? ???????????? (? ??????? ???????????)
# %f - ?????? ???? ? ??? ????? ??????? ??? ??????
# %b - ????? ????, ??????? ???? ???????
# %h - ??? ??????? (?? DNS), ???? ?? ??????? ????????? - IP
# %a - IP-????? ???????
# %m - ??? ??????? ?????????? ?? ??????? (RETR/STOR)
# %T - ????? (??????) ??????? ?? ???????? ????? ???????
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`
# ???? ??????? ????????, ???? ???????? ??? ???????????
# (? ?????? ???????????? ???????? `????????????` ?? 10-20 ??????)
# ?? ???????????????? ????????? ??? ??????
##
UseReverseDNS off
##
IdentLookups off
#UseReverseDNS on
##
#IdentLookups on
#HideNoAccess on
# HideUser uid
#IgnoreHidden on
# MaxClients 15 "??????? ????? ?????????? ? ????????"
# MaxClientsPerHost 4 "%m ??????? ??? ?????????? ? ?????? ?????, ?????? ?? ?????????"
# MaxLoginAttempts 3 "??????? ????? ??????? ?????"
#???????? ?????????? ? ????? ip ?????????? ????????? ??? ?????????
#UseHostsAllowFile /etc/proftpd.allow
#UseHostsDenyFile /etc/proftpd.deny
#PersistentPasswd on | off
# Bind IP-????? (??????? ???????? - ???????? ??????, VirtualHost)
#Bind thedj.org.ua
## DefaultAddress IP-????? (??????? ???????? - ???????? ??????)
DefaultAddress 193.201.81.18
#TransferRate 5 ftp !root
# ???? ???? ????? ??? ???????????? ?? ftp ???? ???????????
# ????? ???????? ???????????, ?? ???? ?????????????????
# ????????? ??????:
DefaultRoot ~
# ? ???? ?????? ??????? - ???? ? ???????? ???????? ?? ????? ???????
# ? ????????? ??`chroot`??. ????, ????????, ???? ????? ????????????
# ????? ?? ??????? ???????? ? ?????????? ???, ?? ???? ??????? !users
# ????? ????? ??????? ???????????? ??????.
#DefaultRoot ~ !lissyara
PersistentPasswd off # (??????? ?? ????????? ????? /etc/passwd ? /etc/group ?? ????? ?????? proftpd, ??????? chroot)
#56780c
#RequireValidShell off
MaxLoginAttempts 2
# ??????????
<Directory ~>
#RequireValidShell off
#TransferRate RETR 1.5
#TransferRate APPE,STOR 8.0
#TransferRate RETR,STOR,APPE 20
#TransferRate RETR,STOR 100
#TransferRate APPE,STOR 4.096
# TransferRate APPE,RETR 100:4000
# TransferRate STOR 100:400
#TransferRate RETR,STOR,APPE 150 user !root
###############TransferRate APPE,RETR,STOR,STOU 128:100000000
#MaxStoreFileSize 3 Mb
#MaxRetrieveFileSize 3 Mb
AllowOverwrite on
AllowOverride off
<Limit Write>
#TransferRate RETR 5
#TransferRate STOR 5
AllowAll
</Limit>
<Limit READ>
#TransferRate RETR 5
#TransferRate STOR 5
AllowAll
</Limit>
</Directory>
<Anonymous /home/ftp>
#RequireValidShell off
# ???????????? ?? ???????? ?????????? ???????
User ftp
# ?????? ???????????
Group ftp
# ?????? ????????????? (????? ????? ??????? ??? ftp, ?
# ?? anonymous)
UserAlias anonymous ftp
# ??????????? ????? ???????????
MaxClients 20 "Sorry, max %m users - try again later"
#TCPAccessFiles /etc/hostsftp
HideGroup di
HideUser di
#RateWriteBPS 16384
#RateReadBPS 50000 # 1K/s max
#RateReadFreeBytes 80000000
<Limit WRITE>
DenyAll
</Limit>
<Limit READ>
Order allow,deny
allow from 193.0.227.0/24
allow from 193.0.228.0/24
allow from 193.0.240.0/24
allow from 193.0.247.0/24
Deny from all
</Limit>
HideNoAccess off
</Anonymous>