ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Vladimir Istrati <bob@kp.md>
To: Sysadmins@lists.altlinux.org
Subject: [Sysadmins] Multiple vsftpd как?
Date: Wed, 20 Aug 2008 15:13:39 +0300
Message-ID: <200808201513.40054.bob@kp.md> (raw)

Есть ftp на базе vsftpd.
Запускается через xinetd.

[root@bob xinetd.d]# cat vsftpd
# default: off
# description: The vsftpd FTP server.
service ftp
{
        disable         = no
        only_from               = 0.0.0.0
        rlimit_as               = 64M
        server          = /usr/sbin/vsftpd 
        user            = root
        socket_type     = stream
        protocol        = tcp
        wait            = no
        nice            = 10
	bind		= 192.168.1.5
#       server_args     =
}

Anonimous отключен.
Машина с vsftpd находится в локалке, но снаружи пробрасывается 21 порт. Все 
работает.

Захотелсь (надо) поднять копию vsftpd. Доступ - только из локалки. Цель - 
сделать анонимный доступ на чтение (репозиторий) и просто положить туда редко 
используемые архивы.

Для этого:
На eth0 добавил адрес 192.168.1.200

[root@bob xinetd.d]# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:13:20:14:93:6b brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.5/24 brd 192.168.1.255 scope global eth0
    inet 192.168.1.200/32 scope global eth0

прочитал 
http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/en-US/Reference_Guide/s2-ftp-vsftpd-start-multi.html

создал копию vsftpd

[root@bob xinetd.d]cp vsftpd vsftpd01

скопировал /etc/vsftpd/conf -> conf01

отредактировал для анонимного доступа (anonymous_enable=YES, и т.д.)

отредактировал vsftpd01

[root@bob xinetd.d]# cat vsftpd01
# default: off
# description: The vsftpd FTP server.
service ftp
{
        disable         = no
        only_from               = 192.168.1.0/24
        rlimit_as               = 64M
        server          = /usr/sbin/vsftpd /etc/vsftpd/conf01 & #согласно 				 	
											#рекомендации
											#в ссылке
        user            = root
        socket_type     = stream
        protocol        = tcp
        wait            = no
        nice            = 10
	bind		= 192.168.1.200
#       server_args     =
}

service xinetd restart

[root@bob syslog]# tail messages
..................................................................................
Aug 20 14:56:13 bob xinetd[16822]: attribute server expects 1 values and 2 
values were specified [file=/etc/xinetd.d/vsftpd01] [line=8]
Aug 20 14:56:13 bob xinetd[16822]: Must specify a server in ftp
Aug 20 14:56:13 bob xinetd[16822]: xinetd Version 2.3.14 started with libwrap 
loadavg options compiled in.
Aug 20 14:56:13 bob xinetd[16822]: Started working: 1 available service
Aug 20 14:56:13 bob xinetd: xinetd startup succeeded

убирание пробела перед &, его убирание совсем вызывает то же самое сообщение в 
messages.


Кстати, рекомендованное там же добавление в конфигурацию   
listen_address=N.N.N.N -  ничего не дает - продолжаются слушаться все 
доступные адреса. bind - жестко привязывает...


как все же запустить копию со своим конфигом? Везде утверждается, что это 
возможно!


             reply	other threads:[~2008-08-20 12:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-20 12:13 Vladimir Istrati [this message]
2008-08-20 14:00 ` Sergey Shilov
2008-08-20 14:12   ` Vladimir Istrati

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200808201513.40054.bob@kp.md \
    --to=bob@kp.md \
    --cc=Sysadmins@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git