ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Olvin <olvin@rambler.ru>
To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] Apache: процессы из-под пользователя apache2, но один - root
Date: Fri, 27 Jun 2008 19:35:06 +0300
Message-ID: <486516BA.6060102@rambler.ru> (raw)
In-Reply-To: <200806260129.06114.shadrinovdd@ystu.ru>

Dmitriy Shadrinov пишет:
>>>>> Почему 6762 под root'ом остаётся, когда все остальные
>>>>> процессы под apache2? [paranoia on]
>>>>> Как сделать так, чтобы всё запускалось под apache2?
>>>>> [paranoia off]
>>>> Апач работает на 80 порту, никто кроме рута не имеет права
>>>> открывать порты ниже 1024, так что один процесс рутовый
>>>> будет в любом случае.
>>> Это я знаю. Только вот тот же bind спокойно работает на 53-м
>>> порту не из-под root. Ведь можно же прицепиться к порту и
>>> сбросить привилегии...
>> И как потом рулить дочерними процессами?
> Кстати, у bind в этом плане есть серьезные проблемы. Если интерфейс 
> динамический, например ppp, то после опускания/поднятия интерфейса он 
> становится нефункционален.

Только что попробовал ifdown lo;ifup lo. Работает bind как и прежде для 
клиентов из 127.0.0.1. Только вот что смущает:

# ps aux|grep named
named     5040  0.0  0.6   5448  1584 ?        Ss   Jun24   0:01 
/usr/sbin/named
# netlist|grep named
root     5040  named   23 tcp       127.0.0.1:953           0.0.0.0:0 
   LISTEN
root     5040  named   21 tcp       127.0.0.1:53            0.0.0.0:0 
   LISTEN
root     5040  named   20 udp       127.0.0.1:53            0.0.0.0:0 
   CLOSE
root     5040  named   22 udp         0.0.0.0:1025          0.0.0.0:0 
   CLOSE

Так от какого же пользователя? :-/


      reply	other threads:[~2008-06-27 16:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-23 11:15 Olvin
2008-06-23 11:35 ` Alexey I. Froloff
2008-06-23 12:23 ` Max Ivanov
2008-06-23 22:57   ` [Sysadmins] [OT] " Ivan Fedorov
2008-06-25 12:14   ` [Sysadmins] " Olvin
2008-06-25 13:25     ` Alexey Borovskoy
2008-06-25 21:29       ` Dmitriy Shadrinov
2008-06-27 16:35         ` Olvin [this message]

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=486516BA.6060102@rambler.ru \
    --to=olvin@rambler.ru \
    --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