From: Michael Shigorin <mike@osdn.org.ua>
To: ALT Devel discussion list <devel@altlinux.ru>
Subject: [devel] Re: Продолжение борьбы с SYMPA
Date: Thu, 3 Mar 2005 12:21:32 +0200
Message-ID: <20050303102132.GZ9734@osdn.org.ua> (raw)
In-Reply-To: <20050303101153.GA4448@basalt.office.altlinux.org>
[-- Attachment #1: Type: text/plain, Size: 1906 bytes --]
On Thu, Mar 03, 2005 at 01:11:53PM +0300, Dmitry V. Levin wrote:
> > > > и, на мой взгляд, есть два способа решения вопроса:
> > > > 1-й вариант: при установке пакета проверяем есть ли такой пользователь,
> > > > если да тогда мы его удаляем и снова заводим но с нужным uid 189
> > > Объясните, пожалуйста, причину такой сильной потребности
> > > использовать в точности uid==gid==189 для sympa.
> > См. багу -- с uid/gid <= 100 не работает suexec.
> Почему не работает? Наверное, он специально так сконфигурирован?
Именно. Я задумался над отслеживанием таймлайна появления 89 и
100, но так и не добрался.
У нас оно из Mdk -- можно посмотреть, что там сейчас.
...а там /etc/passwd вообще почти втрое меньше нашего, и sympa
там нет. А в sympa.spec фигурирует нечто вида: (3.4.4.3-8)
%pre
# Create "sympa" group if it is not already there
if ! grep -q "^sympa:" /etc/group; then
echo "Adding system group: sympa."
/usr/sbin/groupadd sympa
fi
# Add "apache" in group "sympa" so that it could access
# /etc/sympa/wwsympa.conf and therefore a working wwsympa ;-)
if ! grep -q "^sympa:.*\<apache\>" /etc/group; then
echo "Adding apache in group sympa."
comma="";
[ -n "$(grep '^sympa:' /etc/group | sed -e 's/^sympa:.*:.*://')" ] && comma=",";
perl -pi -e "s/^(sympa:.*)/\1${comma}apache/" /etc/group
fi
# Create "sympa" user if it is not already there
home_s_pw=`sed -n -e "/^sympa:[^:]*:[^:]*:[^:]*:[^:]*:\([^:]*\):.*/s//\1/p" /etc/passwd`
if [ -z "$home_s_pw" ]; then
echo "Adding system user: sympa."
/usr/sbin/useradd -m -g sympa -d %{home_s} sympa -c "Sympa mailing-list manager" -s "/bin/bash"
elif [ "$home_s_pw" != "%{home_s}" ]; then
echo "Problem: user \"sympa\" already exists with a home different from %{home_s}"
exit 0
fi
--
---- WBR, Michael Shigorin <mike@altlinux.ru>
------ Linux.Kiev http://www.linux.kiev.ua/
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2005-03-03 10:21 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-28 12:30 [devel] " vserge
2005-02-28 12:47 ` [devel] " Michael Shigorin
2005-02-28 12:57 ` vserge
2005-02-28 15:17 ` [devel] " Dmitry V. Levin
2005-02-28 17:10 ` [devel] " Michael Shigorin
2005-03-03 10:11 ` Dmitry V. Levin
2005-03-03 10:21 ` Michael Shigorin [this message]
2005-03-03 10:21 ` [devel] " Dmitry V. Levin
2005-03-03 11:05 ` [devel] " Michael Shigorin
2005-03-03 11:23 ` [devel] " vserge
2005-03-03 12:31 ` [devel] " Michael Shigorin
2005-03-03 16:19 ` vserge
2005-03-03 16:59 ` Michael Shigorin
2005-03-04 22:34 ` Alexey Tourbin
2005-03-04 22:51 ` [devel] Re: ðÒÏÄÏÌÖÅÎÉÅ ÂÏÒØÂÙ Ó SYMPA Volkov Serge
2005-03-06 9:05 ` Volkov Serge
2005-03-06 19:59 ` [devel] Re: рТПДПМЦЕОЙЕ ВПТШВЩ У SYMPA Alexey Tourbin
2005-03-07 19:57 ` [devel] Re: Òôðäðíãåïêå ÷ðôû÷ý õ SYMPA Volkov Serge
2005-03-07 20:07 ` [devel] Re: ðÒÏÄÏÌÖÅÎÉÅ ÂÏÒØÂÙ Ó SYMPA Volkov Serge
2005-03-11 2:40 ` [devel] Q: perl-SOAP-Lite Alexey Tourbin
2005-03-11 10:20 ` vserge
2005-03-12 12:37 ` Andrey Brindeew
2005-03-12 14:08 ` [devel] " Alexey Tourbin
2005-03-19 21:07 ` Andrey Brindeew
2005-03-11 3:42 ` [devel] Re: рТПДПМЦЕОЙЕ ВПТШВЩ У SYMPA Alexey Tourbin
2005-03-11 10:22 ` vserge
2005-03-11 10:46 ` Alexey Tourbin
2005-03-12 0:11 ` Re[2]: [devel] Re: Òôðäðíãåïêå ÷ðôû÷ý õ SYMPA Volkov Serge
2005-03-12 8:10 ` [devel] Re: Продолжение борьбы с SYMPA Michael Shigorin
2005-03-12 9:10 ` Alexey Borovskoy
2005-03-12 14:23 ` Michael Shigorin
2005-03-13 8:39 ` [devel] Re: ðÒÏÄÏÌÖÅÎÉÅ ÂÏÒØÂÙ Ó SYMPA Volkov Serge
2005-03-13 11:29 ` [devel] Re: Продолжение борьбы с SYMPA Michael Shigorin
2005-03-13 22:37 ` [devel] Re: ðÒÏÄÏÌÖÅÎÉÅ ÂÏÒØÂÙ Ó SYMPA Volkov Serge
2005-03-14 11:09 ` [devel] Re: Продолжение борьбы с SYMPA Michael Shigorin
2005-03-04 22:44 ` Alexey Tourbin
2005-03-04 22:56 ` [devel] Re: ðÒÏÄÏÌÖÅÎÉÅ ÂÏÒØÂÙ Ó SYMPA Volkov Serge
2005-03-04 23:03 ` [devel] Re: Продолжение борьбы с SYMPA Michael Shigorin
2005-03-04 23:01 ` Michael Shigorin
2005-03-04 23:08 ` [devel] Re: ðÒÏÄÏÌÖÅÎÉÅ ÂÏÒØÂÙ Ó SYMPA Volkov Serge
2005-03-04 23:58 ` [devel] perl-MIME-tools Alexey Tourbin
2005-03-05 9:53 ` vserge
2005-03-05 12:10 ` [devel] perl-MIME-tools Michael Shigorin
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=20050303102132.GZ9734@osdn.org.ua \
--to=mike@osdn.org.ua \
--cc=devel@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 Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git