From: Grigory Batalov <bga@altlinux.org>
To: sisyphus@lists.altlinux.org
Subject: [sisyphus] Mailman groups (was: Postfix vs. aliases owner)
Date: Fri, 2 Mar 2007 13:37:45 +0300
Message-ID: <20070302133745.7135b445.bga@altlinux.org> (raw)
In-Reply-To: <20070301224547.GB22504@basalt.office.altlinux.org>
On Fri, 2 Mar 2007 01:45:47 +0300, Dmitry V. Levin wrote:
> > > > Нормально ли, что письмо, полученное постфиксом, обрабатывается от имени
> > > > владельца aliases.cdb?
> > >
> > > Цитирую local(8):
> > >
> > > DELIVERY RIGHTS
> > > Deliveries to external files and external commands are made with
> > > the rights of the receiving user on whose behalf the delivery
> > > is made. In the absence of a user context, the local(8) daemon
> > > uses the owner rights of the :include: file or alias database.
> > > When those files are owned by the superuser, delivery is made
> > > with the rights specified with the default_privs configuration
> > > parameter.
> > >
> > > Таким это поведение было всегда.
> > >
> > > А в чём, собственно говоря, проблема?
> >
> > Это я от неожиданности =). Уже разобрался, как быть.
>
> И как же быть? ;)
Этот файл (aliases.cdb) вероятнее всего будут создавать администраторы
списков или root. Т.е. нужно разрешить запускать mail- и cgi-обработчики
(у них внутри собственная проверка) группам mailmanadm и postman. Это просто.
Но есть другая проблема.
Консольному создателю списков нужен доступ на запись в /etc/mailman/aliases.
У нас это реализовано группой mailmanadm и правами g+w. Однако, есть ещё
cgi-программа для создания списков. Она запускается веб-сервером, например,
apache, с битом SGID mailman, чтобы писать в логи и создавать файлы в
/var/lib/mailman/lists/ и т.п. При этом она не может обновить aliases, т.к.
группа этого файла - mailmanadm.
С другой стороны, даже консольному админу нужно членство в группе mailman,
т.к. он тоже хочет писать в /var/lib/mailman/lists/ . Консольные скрипты -
это текст на питоне, так что SUID/SGID им не выставить.
Пока что я склоняюсь упразднить группу mailmanadm, а админов включать
в группу mailman.
--
Grigory Batalov,
ALT Linux Team
prev parent reply other threads:[~2007-03-02 10:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-01 16:43 [sisyphus] Postfix vs. aliases owner Grigory Batalov
2007-03-01 21:33 ` Dmitry V. Levin
2007-03-01 22:20 ` Grigory Batalov
2007-03-01 22:45 ` Dmitry V. Levin
2007-03-02 10:37 ` Grigory Batalov [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=20070302133745.7135b445.bga@altlinux.org \
--to=bga@altlinux.org \
--cc=sisyphus@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 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