Страница 1 из 1
Тех. поддержка статьи www.ingineer.ru/linux/ftp
Добавлено: 25 мар 2008, 11:40
Роман Торопов
Тех. поддержка статьи
http://www.ingineer.ru/linux/ftp
Пока статья не написана, можете обращаться на ICQ
Все скрипты, интерфейс:
http://ingineer.ru/linux/ftp/files/for_inet_ftp.tar
Re: Тех. поддержка статьи www.ingineer.ru/linux/ftp
Добавлено: 25 мар 2008, 11:40
Роман Торопов
Вот пример конфига:
Код: Выделить всё
# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use. It establishes a single server
# and a single anonymous login. It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.
ServerIdent off
ServerName linux.ingineer.ru
ServerAdmin root@ingineer.ru
ServerType standalone
DefaultServer on
# CharsetLocal UTF-8
# CharsetRemote CP1251
# Allow FTP resuming.
# Remember to set to off if you have an incoming ftp for upload.
AllowStoreRestart on
# Port 21 is the standard FTP port.
Port 21
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
# 022 - стандартная маска, права все чтение, запись автор. (0644)
# 002 - чтение все, запись автор и его группа. (0664)
Umask 002
# 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 3000
# От чьего имени запускается и работает FTP-сервер
User root
Group root
# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
#DefaultRoot ~
# Normally, we want files to be overwriteable.
AllowOverwrite on
# Bar use of SITE CHMOD by default
<Limit SITE_CHMOD>
DenyAll
</Limit>
# Needed for NIS.
PersistentPasswd off
# Default root can be used to put users in a chroot environment.
# As an example if you have a user foo and you want to put foo in /var/www/foo
# chroot environment you would do this:
# Каталог, в который попадают аторизированные пользователи.
# DefaultRoot /var/www/foo foo
DefaultRoot /mnt/ftp/pub
# -----------------------------------------------------------------------------------
# Каталог в который попадают анонимные пользователи. (без пароля)
<Anonymous /mnt/ftp/pub/allready>
User ftp
Group ftp
# We want clients to be able to login with "anonymous" as well as "ftp"
UserAlias anonymous ftp
# Limit the maximum number of anonymous logins
MaxClients 3000
# Don't make it require a valid password or shell.
RequireValidShell off
AnonRequirePassword off
# We want 'welcome.msg' displayed at login, and '.message' displayed
# in each newly chdired directory.
DisplayLogin welcome.msg
DisplayFirstChdir .message
# Limit WRITE everywhere in the anonymous chroot
<Limit WRITE>
DenyAll
</Limit>
</Anonymous>
# ---------------------------------------------------------------------------
#каталог по умолчанию для авторизированных пользователей.
<Global /mnt/ftp/pub>
<Limit LOGIN>
# пользователи с особыми правилами
AllowUser user,user2,user3
Order allow,deny
Allow from all
Deny from all
</Limit>
# -----------------------------------------------------------------------------
# правила для пользователя user - только чтение
<Anonymous /mnt/sda>
User user
Group users
AnonRequirePassword on
MaxClients 300 "The server is full, hosting %m users"
DisplayLogin welcome.msg
DisplayFirstChdir .msg
AllowOverwrite off
<Limit WRITE>
DenyAll
</Limit>
<Limit LOGIN>
Allow from all
Deny from all
</Limit>
</Anonymous>
# --------------------------------------------------------------
# правила для пользователя user2, чтение и запись
<Anonymous /mnt/sdb>
User user2
Group users
AnonRequirePassword on
MaxClients 300 "The server is full, hosting %m users"
DisplayLogin welcome.msg
DisplayFirstChdir .msg
AllowOverwrite on
<Limit WRITE>
AllowAll
</Limit>
<Limit LOGIN>
Allow from all
Deny from all
</Limit>
</Anonymous>
# -------------------------------------------------------------------
# правила для пользователя user3, чтение и запись, без права перезаписи существ. файлов
<Anonymous /mnt/sdd>
User user3
Group users
AnonRequirePassword on
MaxClients 300 "The server is full, hosting %m users"
DisplayLogin welcome.msg
DisplayFirstChdir .msg
AllowOverwrite off
<Limit WRITE>
AllowAll
</Limit>
<Limit LOGIN>
Allow from all
Deny from all
</Limit>
</Anonymous>
# --------------------------------------------------------------
</Global>
#drakwizard_pxe_end
RootLogin off
AllowForeignAddress on
AllowRetrieveRestart on
DirFakeUser off nobody
LogFormat auth "%v [%P] %h %t "%r" %s"
Extendedlog /var/log/proftpd/ftp.log
UseReverseDNS off
LogFormat default "%h %l %u %t "%r" %s %b"
SystemLog /var/log/proftpd/proftpd.log
DisplayConnect /etc/banner-proftpd
DirFakeGroup off nobody
DeleteAbortedStores off
IdentLookups off
DeferWelcome on
TimesGMT off
TransferLog /var/log/proftpd/xferlog
AccessGrantMsg " -- Guest access granted for %u --"
ServerIdent off
LogFormat write "%h %l %u %t "%r" %s %b"
AccessDenyMsg " !-!! ACCESS DENY !!-! SEEMS YOU HAVE NO RIGHT THERE !!"
Re: Тех. поддержка статьи www.ingineer.ru/linux/ftp
Добавлено: 21 дек 2008, 01:09
MotoROKR
Здраствуйте.
Возникли проблемы при установке веб интерфейса ftp.
Фтп вроде настроил, вот захотел приклепить вашу веб морду для фтп, но столнулсяс проблемой
1. не импортируется база ftp.sql пишет
Код: Выделить всё
Ошибка
SQL-запрос:
# MySQL-Front Dump 2.5
#
# Host: 101.101.101.101 Database: table
# --------------------------------------------------------
# Server version 4.0.15
USE TABLE ;
Ответ MySQL: Документация
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'table' at line 1
2. когда захожу по ссылке
http://мойсайт/ftp/ (я сразу кинул вашу папку /var/www/cgi-bin/tables/ftp в свою /var/www/html/мойсайт/ чтобы не был большой путь )
и вот что он мне кажет
http://www.valar.ru/gallery/1208/ftp.jpg
Re: Тех. поддержка статьи www.ingineer.ru/linux/ftp
Добавлено: 21 дек 2008, 11:20
Роман Торопов
сначало нужно было создать базу table
Re: Тех. поддержка статьи www.ingineer.ru/linux/ftp
Добавлено: 28 дек 2008, 22:09
MotoROKR
Роман Торопов писал(а):сначало нужно было создать базу table
Нет не хочет, все равно выдает ошибку.
Хотя делаю правильно.
Создаю базу под названием table ( кстати на сайте
http://www.ingineer.ru/linux/ftp/index.html#A5 ошибка в слове "Создаём базу
teble подгружаем" ) жму импортировать, выбираю table.sql и в ответ ругается.
Ошибка
SQL-запрос:
# MySQL-Front Dump 2.5
#
# Host: 192.168.0.1 Database: table
# --------------------------------------------------------
# Server version 4.0.15
USE TABLE ;
Ответ MySQL: Документация
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'table' at line 1
может нужно таблицу создавать и импортировать со спец. параметрами ?