From: "Slava Semushin" <slava.semushin@gmail.com>
To: "ALT Linux Sisyphus discussions" <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] installer bug?
Date: Tue, 18 Sep 2007 20:28:39 +0700
Message-ID: <75e139a00709180628p56294fa5pf99d84d8608cb908@mail.gmail.com> (raw)
In-Reply-To: <75e139a00709180626s69b9009ai66e843ab7aa2843d@mail.gmail.com>
18.09.07, Slava Semushin<slava.semushin / gmail.com> написал(а):
[...]
> Даже если это и баг, то проблема IMHO несколько глубже: у нас нет ни
> policy, ни каких-либо макросов (см. bug #9895) о том как правильно
> добавлять пользователей/группы в систему. В итоге, какждый делает сам
> как может/где увидел/что придумал и получаются разные ошибки..
>
> :-/
Я лично насмотревшись разных спеков сделал так (кусок ossec.spec):
%define _addgroup /usr/sbin/groupadd -r -f
%define _adduser /usr/sbin/useradd -r -n -d /dev/null -s /sbin/nologin
-g %ossec_group
%pre
# If we install package
if [ $1 -eq 1 ]; then
. %_addgroup %ossec_group || :
. %_adduser %ossec_user -c 'OSSEC User' || :
. %_adduser %ossec_muser -c 'OSSEC Mail User' || :
. %_adduser %ossec_ruser -c 'OSSEC Daemon'|| :
fi
--
+ Slava Semushin | slava.semushin @ gmail.com
+ ALT Linux Team | php-coder @ altlinux.ru
next prev parent reply other threads:[~2007-09-18 13:28 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-18 12:44 Igor Vlasenko
2007-09-18 13:18 ` Michael Shigorin
2007-09-18 13:25 ` Igor Vlasenko
2007-09-18 13:44 ` Michael Shigorin
2007-09-18 14:04 ` Igor Vlasenko
2007-09-18 18:03 ` Eugene Prokopiev
2007-09-18 18:10 ` Igor Vlasenko
2007-09-19 14:23 ` Stanislav Ievlev
2007-09-25 11:58 ` Michael Shigorin
2007-09-26 6:29 ` Michael Shigorin
2007-09-18 13:25 ` Epiphanov Sergei
2007-09-18 13:26 ` Slava Semushin
2007-09-18 13:28 ` Slava Semushin [this message]
2007-09-18 13:40 ` Epiphanov Sergei
2007-09-18 13:44 ` Slava Semushin
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=75e139a00709180628p56294fa5pf99d84d8608cb908@mail.gmail.com \
--to=slava.semushin@gmail.com \
--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