ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
* [Sysadmins] Multiple vsftpd как?
@ 2008-08-20 12:13 Vladimir Istrati
  2008-08-20 14:00 ` Sergey Shilov
  0 siblings, 1 reply; 3+ messages in thread
From: Vladimir Istrati @ 2008-08-20 12:13 UTC (permalink / raw)
  To: Sysadmins

Есть 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 - жестко привязывает...


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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Sysadmins] Multiple vsftpd как?
  2008-08-20 12:13 [Sysadmins] Multiple vsftpd как? Vladimir Istrati
@ 2008-08-20 14:00 ` Sergey Shilov
  2008-08-20 14:12   ` Vladimir Istrati
  0 siblings, 1 reply; 3+ messages in thread
From: Sergey Shilov @ 2008-08-20 14:00 UTC (permalink / raw)
  To: sysadmins

В сообщении от 20 августа 2008 Vladimir Istrati написал(a):

Навскидку
> [root@bob xinetd.d]# cat vsftpd01
> # default: off
> # description: The vsftpd FTP server.
> service ftp
> {
>         server          = /usr/sbin/vsftpd /etc/vsftpd/conf01 & #согласно 				 	
           server          = /usr/sbin/vsftpd
>         user            = root
>         socket_type     = stream
>         protocol        = tcp
>         wait            = no
>         nice            = 10
> 	bind		= 192.168.1.200
> 	#  server_args     =  /etc/vsftpd/conf01
       server_args     =  /etc/vsftpd/conf01
> }

О чем сказано в 
> Aug 20 14:56:13 bob xinetd[16822]: attribute server expects 1 values and 2 
...
 
---
С уважением
С.Шилов


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Sysadmins] Multiple vsftpd как?
  2008-08-20 14:00 ` Sergey Shilov
@ 2008-08-20 14:12   ` Vladimir Istrati
  0 siblings, 0 replies; 3+ messages in thread
From: Vladimir Istrati @ 2008-08-20 14:12 UTC (permalink / raw)
  To: sysadmins

>        server_args     =  /etc/vsftpd/conf01
> О чем сказано в
>
> > Aug 20 14:56:13 bob xinetd[16822]: attribute server expects 1 values and
> > 2

Спасибо! 
Заработало!

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-08-20 14:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-20 12:13 [Sysadmins] Multiple vsftpd как? Vladimir Istrati
2008-08-20 14:00 ` Sergey Shilov
2008-08-20 14:12   ` Vladimir Istrati

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