From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Linux Sisyphus mailing list <sisyphus@altlinux.ru>
Subject: Re: [sisyphus] chroot
Date: Tue, 1 Oct 2002 12:26:51 +0400
Message-ID: <20021001082651.GA11716@basalt.office.altlinux.ru> (raw)
In-Reply-To: <3D995666.6020602@avanto.mpei.ac.ru>
[-- Attachment #1: Type: text/plain, Size: 5420 bytes --]
On Tue, Oct 01, 2002 at 12:01:42PM +0400, Dmitry E. Oboukhov wrote:
> >Если вы хотите услышать от меня комментарий, то пришлите, пожалуйста,
> >вывод команды
> >
> >$ ps afxuww |egrep "^(`awk -F: '{if ($3<500) print $1}' </etc/passwd
> >|xargs echo |tr ' ' '|'`)[[:space:]]*"
>
> вывод достаточно большой получился:
> [/home/dimka] $ ps afxuww |egrep "^(`awk -F: '{if ($3<500) print $1}'
> </etc/passwd |xargs echo |tr ' ' '|'`)[[:space:]]*"
> root 6 0.0 0.0 0 0 ? SW Sep22 0:01 [kupdated]
> root 5 0.0 0.0 0 0 ? SW Sep22 0:00 [bdflush]
> root 4 0.0 0.0 0 0 ? SW Sep22 0:06 [kswapd]
> root 3 0.0 0.0 0 0 ? SWN Sep22 0:06 [ksoftirqd_CPU0]
> root 1 0.0 0.1 1268 484 ? S Sep22 0:04 init [3]
> root 2 0.0 0.0 0 0 ? SW Sep22 0:00 [keventd]
> root 7 0.0 0.0 0 0 ? SW< Sep22 0:00 [mdrecoveryd]
> root 152 0.0 0.0 0 0 ? SW Sep22 0:00 [kjournald]
Это kernel threads + init.
> root 779 0.0 0.2 1572 708 ? S Sep22 1:09 /sbin/syslog-ng
Не знаю, почему люди ставят syslog-ng.
syslogd работает под псевдопользователем (и в readonly
chroot jail, если сконфигурирован).
> klogd 796 0.0 0.4 1948 1152 ? S Sep22 0:04 /sbin/klogd -c 1 -2 -u klogd -j /var/lib/klogd
Работает под псевдопользователем в readonly chroot jail.
> atdaemon 815 0.0 0.2 1300 532 ? S Sep22 0:00 /usr/sbin/atd
Работает с эффективными правами псевдопользователя (все равно нужен
как минимум CAP_SETUID в некоторые моменты работы).
> root 832 0.0 0.2 1480 644 ? S Sep22 0:00 crond
Нужен как минимум CAP_SETUID.
> root 849 0.0 0.3 2076 892 ? S Sep22 0:10 /usr/sbin/xinetd -reuse -remlock
Нужен как минимум CAP_SETUID+CAP_NET_BIND_SERVICE.
> root 866 0.0 0.4 2504 1260 ? S Sep22 0:07 /usr/sbin/sshd
> root 3414 0.0 0.6 5840 1776 ? S 12:19 0:00 \_/usr/sbin/sshd
Нужен root для авторизации пользователей.
> root 1309 0.0 0.4 3328 1168 ? S Sep22 0:05 /usr/lib/postfix/master
Это управляющий сервер postfix'а; вся основная работа ведется в
компонентах.
> postfix 1324 0.0 0.5 3492 1308 ? S Sep22 0:36 \_ qmgr -l -t fifo -u -c
> postfix 3352 0.0 0.4 3508 1200 ? S 12:10 0:00 \_ pickup -l -t fifo -u -c
> postfix 3370 0.0 0.4 3520 1216 ? S 12:15 0:00 \_ trivial-rewrite -n rewrite -t unix -u -c
> postfix 3399 0.0 0.5 3752 1424 ? S 12:18 0:00 \_ smtpd -n smtp -t inet -u -c -s 3
> postfix 3400 0.0 0.5 3576 1288 ? S 12:18 0:00 \_ cleanup -t unix -u -c
> postfix 3401 0.0 0.5 4784 1436 ? S 12:18 0:00 \_ local -t unix
> postfix 3403 0.0 0.4 3512 1212 ? S 12:18 0:00 \_ flush -t unix -u -c
Компоненты postfix'а; все работают с правами псевдопользователя postfix,
большинство - в специальном chroot jail.
> root 1346 0.0 0.4 3756 1108 ? S Sep22 0:00 squid -D
> squid 1348 0.0 18.5 49112 47584 ? R Sep22 12:21 \_ (squid) -D
> squid 1365 0.0 0.1 1228 268 ? S Sep22 0:01 \_ (unlinkd)
Управляющий сервер - root;
все остальные - псевдопользователи.
В принципе, и управляющий сервер можно сконфигурировать работать с правами
псевдопользователя в chroot jail; при этом будет потеряна часть
функциональности.
В принципе, тут есть над чем поработать.
> root 1366 0.0 0.7 4640 1956 ? S Sep22 0:00 smbd -D
> nobody 6540 0.9 1.1 5204 2892 ? S Sep27 57:01 \_ smbd -D
> root 28447 0.0 1.0 5148 2672 ? S Sep30 0:07 \_ smbd -D
> root 3116 0.0 0.9 5108 2388 ? S 11:19 0:00 \_ smbd -D
> root 3223 0.0 0.9 5112 2488 ? S 11:42 0:00 \_ smbd -D
> root 1373 0.0 0.6 3592 1708 ? S Sep22 0:03 nmbd -D
Самба авторизует пользователей.
> root 1393 0.0 0.1 1232 416 tty1 S Sep22 0:00 /sbin/mingetty tty1
> root 1394 0.0 0.1 1232 416 tty2 S Sep22 0:00 /sbin/mingetty tty2
> root 1395 0.0 0.1 1232 416 tty3 S Sep22 0:00 /sbin/mingetty tty3
Нужен CAP_SYS_TTY_CONFIG для vhangup() на терминал.
> root 1882 0.0 0.5 4212 1504 ? S Sep22 0:00 httpd
> apache 17381 0.0 0.6 4432 1732 ? S Sep29 0:00 \_ httpd
> apache 17382 0.0 0.6 4432 1764 ? S Sep29 0:00 \_ httpd
> apache 17383 0.0 0.6 4440 1748 ? S Sep29 0:00 \_ httpd
> apache 17384 0.0 0.6 4444 1764 ? S Sep29 0:00 \_ httpd
> apache 17444 0.0 0.6 4444 1760 ? S Sep29 0:00 \_ httpd
> apache 17445 0.0 0.7 4456 1804 ? S Sep29 0:00 \_ httpd
> apache 17895 0.0 0.6 4432 1736 ? S Sep29 0:00 \_ httpd
> apache 17896 0.0 0.6 4444 1776 ? S Sep29 0:00 \_ httpd
> apache 17917 0.0 0.6 4444 1784 ? S Sep29 0:00 \_ httpd
> apache 20655 0.0 0.6 4432 1732 ? S Sep29 0:00 \_ httpd
Управляющий сервер - root;
все остальные - псевдопользователи.
В принципе, и управляющий сервер можно сконфигурировать работать с правами
псевдопользователя; при этом будет потеряна часть функциональности.
--
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2002-10-01 8:26 UTC|newest]
Thread overview: 95+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-23 8:08 Dmitry E. Oboukhov
2002-09-23 8:22 ` Dmitry V. Levin
2002-09-23 8:29 ` Dmitry E. Oboukhov
2002-09-23 8:40 ` Dmitry V. Levin
2002-09-23 8:54 ` Dmitry E. Oboukhov
2002-09-23 9:12 ` Dmitry V. Levin
2002-09-23 9:39 ` Dmitry E. Oboukhov
2002-09-23 9:53 ` Dmitry V. Levin
2002-09-23 9:56 ` Dmitry E. Oboukhov
2002-09-23 11:38 ` Re[2]: " Герасимов Дмитрий
2002-09-23 10:56 ` Dmitry E. Oboukhov
2002-09-23 11:09 ` Alexey V. Lubimov
2002-09-23 11:19 ` Dmitry E. Oboukhov
2002-09-23 11:31 ` Dmitry V. Levin
2002-09-23 11:41 ` Dmitry E. Oboukhov
2002-09-23 12:01 ` Anton V. Boyarshinov
2002-09-23 18:05 ` AHTOH
2002-09-23 18:13 ` Герасимов Дмитрий
2002-09-23 19:01 ` AHTOH
2002-09-23 20:38 ` Igor Homyakov
2002-09-23 22:07 ` AHTOH
2002-09-24 4:45 ` Igor Homyakov
2002-09-24 18:59 ` AHTOH
2002-09-25 12:30 ` Alexey V. Lubimov
2002-09-25 19:56 ` AHTOH
2002-09-25 21:19 ` "Алексей Любимов"
2002-09-26 18:10 ` AHTOH
2002-09-27 4:46 ` А.Л. Клютченя
2002-09-27 8:15 ` Alexey V. Lubimov
2002-09-24 5:17 ` Re[2]: " Герасимов Дмитрий
2002-09-24 9:05 ` aen
2002-09-24 5:15 ` Re[2]: " Герасимов Дмитрий
2002-09-24 14:50 ` Борис Ревякин
2002-09-24 10:06 ` [sisyphus] chroot Michael Shigorin
2002-09-24 21:26 ` [sisyphus] chroot Vitaly Lipatov
2002-09-25 20:03 ` AHTOH
2002-09-26 5:03 ` А.Л. Клютченя
2002-09-23 18:41 ` "Алексей Любимов"
2002-09-23 12:14 ` Dmitry V. Levin
2002-09-23 12:21 ` Alexey V. Lubimov
2002-09-23 11:09 ` Dmitry V. Levin
2002-09-23 12:23 ` Albert R. Valiev
2002-09-23 12:39 ` Dmitry E. Oboukhov
2002-09-23 12:45 ` Dmitry V. Levin
2002-09-23 12:49 ` Dmitry E. Oboukhov
2002-09-23 12:54 ` Dmitry E. Oboukhov
2002-09-23 13:25 ` Albert R. Valiev
2002-09-23 13:36 ` Dmitry E. Oboukhov
2002-09-23 12:45 ` Albert R. Valiev
2002-09-23 12:41 ` Dmitry E. Oboukhov
2002-09-23 13:19 ` Albert R. Valiev
2002-09-23 13:33 ` Dmitry E. Oboukhov
2002-09-23 11:58 ` Re[2]: " Герасимов Дмитрий
2002-09-23 11:07 ` Dmitry E. Oboukhov
2002-09-23 12:10 ` Re[2]: " Герасимов Дмитрий
2002-09-23 14:04 ` [sisyphus] chroot Michael Shigorin
2002-09-23 11:14 ` Re[2]: [sisyphus] chroot А.Л. Клютченя
2002-09-23 13:58 ` [sisyphus] chroot Michael Shigorin
2002-09-23 14:19 ` Dmitry E. Oboukhov
2002-09-23 14:47 ` Dmitry V. Levin
2002-09-24 6:22 ` Anton V. Boyarshinov
2002-09-24 8:09 ` Dmitry E. Oboukhov
2002-09-24 8:18 ` Anton V. Boyarshinov
2002-09-23 11:01 ` [sisyphus] chroot Anton V. Boyarshinov
2002-09-23 11:06 ` Dmitry E. Oboukhov
2002-09-23 11:15 ` Anton V. Boyarshinov
2002-09-23 11:32 ` Dmitry E. Oboukhov
2002-09-23 11:36 ` Dmitry V. Levin
2002-09-23 11:43 ` А.Л. Клютченя
2002-09-23 11:52 ` [sisyphus] chroot Alexey Tourbin
2002-09-23 12:03 ` Dmitry E. Oboukhov
2002-09-23 14:06 ` Michael Shigorin
2002-10-01 12:42 ` [sisyphus] Re: chroot [JT] Alexey Tourbin
2002-10-01 15:46 ` Dmitry E. Oboukhov
2002-10-01 15:55 ` Alexey Tourbin
2002-10-01 16:09 ` Vitaly Ostanin
2002-09-29 14:46 ` [sisyphus] chroot Dmitry E. Oboukhov
2002-09-29 16:32 ` Dmitry V. Levin
2002-10-01 8:01 ` Dmitry E. Oboukhov
2002-10-01 8:26 ` Dmitry V. Levin [this message]
2002-10-01 8:57 ` Dmitry E. Oboukhov
2002-10-01 9:17 ` Dmitry V. Levin
2002-10-01 9:34 ` Dmitry E. Oboukhov
2002-10-02 10:42 ` [sisyphus] accessfs and non-root socket()s < 1024 (was: chroot) Michael Shigorin
2002-09-29 17:22 ` [sisyphus] chroot "Алексей Любимов"
2002-10-01 7:55 ` Dmitry E. Oboukhov
2002-10-01 8:01 ` [sisyphus] chroot Michael Shigorin
2002-10-01 8:10 ` Dmitry E. Oboukhov
2002-10-01 8:30 ` Michael Shigorin
2002-10-01 8:37 ` Gerasimov Dmitry
2002-10-01 8:50 ` Anton V. Boyarshinov
2002-10-01 8:50 ` Gerasimov Dmitry
2002-10-01 9:07 ` Michael Shigorin
2002-10-01 9:07 ` Gerasimov Dmitry
2002-10-01 9:13 ` Anton V. Boyarshinov
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=20021001082651.GA11716@basalt.office.altlinux.ru \
--to=ldv@altlinux.org \
--cc=sisyphus@altlinux.ru \
/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 Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git