* [mdk-re] adduser в spec-файле @ 2002-04-15 19:19 vic ismakaev 2002-04-15 22:52 ` [mdk-re] " Konstantin Lepikhov 0 siblings, 1 reply; 6+ messages in thread From: vic ismakaev @ 2002-04-15 19:19 UTC (permalink / raw) To: mandrake-russian Как можно сделать добавление пользователя при установке РПМ-пакета? Насколько я понял ,это делается в секции %pre? И как сделать так , чтобы в случае, если нужный пользователь уже существует в системе, инсталляция не прерывалась с ошибкой, а корректно обрабатывалась данная ситуация? В таком примере : ----------------------------------------------------------- %pre /usr/sbin/groupadd -r -f mail &>/dev/null /usr/sbin/useradd -r -n -d /dev/null -s /dev/null cyrus&>/dev/null ---------------------------------------------------------- если пользователь cyrus уже существует, rpm -i cyrus-imapd.rpm вываливается с ошибкой, что такой пользователь уже существует. -- С уважением Виктор В Исмакаев ^ permalink raw reply [flat|nested] 6+ messages in thread
* [mdk-re] Re: adduser в spec-файле 2002-04-15 19:19 [mdk-re] adduser в spec-файле vic ismakaev @ 2002-04-15 22:52 ` Konstantin Lepikhov 2002-04-16 6:32 ` vic ismakaev 0 siblings, 1 reply; 6+ messages in thread From: Konstantin Lepikhov @ 2002-04-15 22:52 UTC (permalink / raw) To: mandrake-russian Hi vic! Monday 15, at 09:19:15 PM you wrote: > Как можно сделать добавление пользователя при установке РПМ-пакета? > Насколько я понял ,это делается в секции %pre? > И как сделать так , чтобы в случае, если нужный пользователь уже существует в > системе, инсталляция не прерывалась с ошибкой, а корректно обрабатывалась > данная ситуация? > > В таком примере : > ----------------------------------------------------------- > %pre > /usr/sbin/groupadd -r -f mail &>/dev/null > /usr/sbin/useradd -r -n -d /dev/null -s /dev/null cyrus&>/dev/null > ---------------------------------------------------------- > если пользователь cyrus уже существует, rpm -i cyrus-imapd.rpm вываливается с > ошибкой, что такой пользователь уже существует. > А так не сгодится? id %{name} > /dev/null 2>&1 if [ $? -eq 1 ]; then /usr/sbin/useradd -d %{_sysconfdir}/%{name} -r -s "" %{name} > /dev/null fi (взято из spec'а privoxy) -- with best regards, ICQ: 109916175 Konstantin Lepikhov mailto:lakostis@pisem.net.nospam Motto: Linux is like a wigwam - no windows, no gates, apache inside! ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [mdk-re] Re: adduser в spec-файле 2002-04-15 22:52 ` [mdk-re] " Konstantin Lepikhov @ 2002-04-16 6:32 ` vic ismakaev 2002-04-16 8:53 ` [mdk-re] Fetchmailrc & Spam Letter Tihonov Vladimir 2002-04-16 9:19 ` [mdk-re] Re: adduser в spec-файле Yura Zotov 0 siblings, 2 replies; 6+ messages in thread From: vic ismakaev @ 2002-04-16 6:32 UTC (permalink / raw) To: mandrake-russian 16 Апрель 2002 00:45, Вы написали: > Hi vic! > > Monday 15, at 09:19:15 PM you wrote: > > Как можно сделать добавление пользователя при установке РПМ-пакета? > > Насколько я понял ,это делается в секции %pre? > > И как сделать так , чтобы в случае, если нужный пользователь уже > > существует в системе, инсталляция не прерывалась с ошибкой, а корректно > > обрабатывалась данная ситуация? > > > > В таком примере : > > ----------------------------------------------------------- > > %pre > > /usr/sbin/groupadd -r -f mail &>/dev/null > > /usr/sbin/useradd -r -n -d /dev/null -s /dev/null cyrus&>/dev/null > > ---------------------------------------------------------- > > если пользователь cyrus уже существует, rpm -i cyrus-imapd.rpm > > вываливается с ошибкой, что такой пользователь уже существует. > > А так не сгодится? > > id %{name} > /dev/null 2>&1 > if [ $? -eq 1 ]; then > /usr/sbin/useradd -d %{_sysconfdir}/%{name} -r -s "" %{name} > > /dev/null fi > > (взято из spec'а privoxy) Спасибо! Я сделал так ,как в спеке постфикса. /usr/sbin/useradd -r -n -d /dev/null -s /dev/null cyrus&>/dev/null ||: ^^^ -правда,что значит эта комбинация,не нашел. Все нормально. -- С уважением Виктор В Исмакаев ^ permalink raw reply [flat|nested] 6+ messages in thread
* [mdk-re] Fetchmailrc & Spam Letter 2002-04-16 6:32 ` vic ismakaev @ 2002-04-16 8:53 ` Tihonov Vladimir 2002-04-16 9:19 ` [mdk-re] Re: adduser в spec-файле Yura Zotov 1 sibling, 0 replies; 6+ messages in thread From: Tihonov Vladimir @ 2002-04-16 8:53 UTC (permalink / raw) To: vic ismakaev Hello All, Какой-то глюк... В общем на сервак провайдера приходит сообщение, явно спамерское... fetchmail его принимать не хочет и гадит с логи следующим образом: fetchmail: nameserver failure while looking for `cunix.com' during poll of mail.nv.city. fetchmail: nameserver failure while looking for `cunix.com' during poll of mail.nv.city. само собой разумеется, что логи разростаются до невозможности... само сообщение после подписи... куда копать, как бороться? -- Best regards, Tihonov mailto:sib_drakula@intramail.ru retr 1 +OK 5127 octets (autodeleted) Received: by astral.intramail.ru (mbox siberia) (with Cubic Circle's cucipop (v1.31 1998/05/13) Tue Apr 16 10:52:08 2002) X-From_: nnips@mainsite.spinn.net Mon Apr 15 22:15:45 2002 Return-Path: <nnips@mainsite.spinn.net> Received: from mainsite.spinn.net (vhost03.spinn.net [216.223.237.34]) by astral.intramail.ru (8.11.6/8.11.3) with ESMTP id g3FGFHi56325 for <supermegakillerforeva2.0@siberia.intramail.ru>; Mon, 15 Apr 2002 22 :15:25 +0600 (YEKST) Received: (from nnips@localhost) by mainsite.spinn.net (8.11.1/8.11.1) id g3FGCtm13538; Mon, 15 Apr 2002 10:12:55 -0600 Date: Mon, 15 Apr 2002 10:12:55 -0600 From: "beta.spinn.net" <nnips@mainsite.spinn.net> Message-Id: <200204151612.g3FGCtm13538@mainsite.spinn.net> To: <supermedic@netscape.net>www.spinn.net, <supermedic@usa.net>www.spinn.net, <supermedic@verio.com>www.spinn.net, <supermedic@yahoo.com>www.spinn.net, <supermedina@hotmail.com>www.spinn.net, <supermedina@msn.com>www.spinn.net, <supermedina@yahoo.com>www.spinn.net, <supermee@hotmail.com>www.spinn.net, <supermeeee@att.net>www.spinn.net, <supermeeee@mindspring.com>www.spinn.net, <supermeeee@msn.com>www.spinn.net, <supermeek@hotmail.com>www.spinn.net, <supermeek@yahoo.com>www.spinn.net, <supermeemo@yahoo.com>www.spinn.net, <supermeen@hotmail.com>www.spinn.net, <supermeen@yahoo.com>www.spinn.net, <supermeena@att.net>www.spinn.net, <supermeena@coastlinewebdesign.com>www.spinn.net, <supermeena@excite.com>www.spinn.net, <supermeena@hotmail.com>www.spinn.net, <supermeena@msn.com>www.spinn.net, <supermeena@yahoo.com>www.spinn.net, <supermeep@hotmail.com>www.spinn.net, <supermeep@yahoo.com>www.spinn.net, <supermeg13@yahoo.com>www.spinn.net, <supermeg16@hotmail.com>www.spinn.net, <supermeg1@hotmail.com>www.spinn.net, <supermeg4@hotmail.com>www.spinn.net, <supermeg82@address.com>www.spinn.net, <supermeg82@asiansonly.net>www.spinn.net, <supermeg82@umailme.com>www.spinn.net, <supermeg82@yahoo.com>www.spinn.net, <supermeg@cunix.com>www.spinn.net, <supermeg@hotmail.com>www.spinn.net, <supermeg@msn.com>www.spinn.net, <supermeg@swbell.net>www.spinn.net, <supermeg@usa.net>www.spinn.net, <supermeg@voyager.net>www.spinn.net, <supermeg@webtv.net>www.spinn.net, <supermeg@yahoo.com>www.spinn.net, <supermeg_1@hotmail.com>www.spinn.net, <supermega1@hotmail.com>www.spinn.net, <supermega@hotmail.com>www.spinn.net, <supermega@yahoo.com>www.spinn.net, <supermegafetcool@address.com>www.spinn.net, <supermegafetcool@asiansonly.net>www.spinn.net, <supermegafetcool@umailme.com>www.spinn.net, <supermegafetcool@yahoo.com>www.spinn.net, <supermegaipercazzo@yahoo.com>www.spinn.net, <supermegajenny9@yahoo.com>www.spinn.net, <supermegakillerforeva2.0@siberia.intramail.ru>www.spinn.net, <supermegamanx@hotmail.com>www.spinn.net, <supermegamaxi@att.net>www.spinn.net, <supermegamaxi@msn.com>www.spinn.net, <> upermegan12@yahoo.com>www.spinn.net,<supermegan13@hotmail.com>www.spinn.net,<sup ermegan1486@hotmail.com>www.spinn.net,<supermegan@hotmail.com>www.spinn.net,<sup ermegan@usa.net>www.spinn.net,<supermegan@yahoo.com>www.spinn.net,<supermegatopi a@supermegatopia.com>www.spinn.net,<supermegatron2000@yahoo.com>www.spinn.net,<s upermegazoid6@yahoo.com>www.spinn.net,<supermegg@hotmail.com>www.spinn.net,<supe rmegg@yahoo.com>www.spinn.net,<supermeghan13@hotmail.com>www.spinn.net,<supermeg ie@yahoo.com>www.spinn.net,<supermegmeg@att.net>www.spinn.net,<supermegmeg@msn.c om>www.spinn.net,<supermegs101@hotmail.com>www.spinn.net,<supermegs@chickmail.co m>www.spinn.net,<supermegs@hotmail.com>www.spinn.net,<supermegs@msn.com>www.spin n.net,<supermegs@yahoo.com>www.spinn.net,<supermei@hotmail.com>www.spinn.net,<su permei@yahoo.com>www.spinn.net,<supermein98@yahoo.com>www.spinn.net,<supermeko@h otmail.com>www.spinn.net,<supermeko@yahoo.com>www.spinn.net,<supermel10@hotmail. com>www.spinn.net From: a50b@aol.com () Subject: amon BQMq0TJKs Below is the result of your feedback form. It was submitted by (a50b@aol.com) on Monday, April 15, 2002 at 10:12:54 --------------------------------------------------------------------------- ..: Are you looking to make money online? If you're either looking for a job, tired of your existing job, eager for more p ay, or just anxious to have the added freedom and independence that comes with w orking at home, this email could change your life. We can teach you (in under a half-hour) how to pull in a six-figure income from home... GUARANTEED, or your money back. Click below for more info. http://FPDk3lM7@www.internetmarketingadviser.com/b001/path2wealth1 ------------------------------------------------------------------------------ If you would like to be removed from this list and all future mailings, please c lick here: http://FPDk3lM7@www.internetmarketingadviser.com/b001/remove.htm W5dkeH7cqb FYH25XT --------------------------------------------------------------------------- . ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [mdk-re] Re: adduser в spec-файле 2002-04-16 6:32 ` vic ismakaev 2002-04-16 8:53 ` [mdk-re] Fetchmailrc & Spam Letter Tihonov Vladimir @ 2002-04-16 9:19 ` Yura Zotov 2002-04-16 9:27 ` vic ismakaev 1 sibling, 1 reply; 6+ messages in thread From: Yura Zotov @ 2002-04-16 9:19 UTC (permalink / raw) To: mandrake-russian On Tue, Apr 16, 2002 at 08:28:15AM +0600, vic ismakaev wrote: > 16 Апрель 2002 00:45, Вы написали: > > Hi vic! > > > > Monday 15, at 09:19:15 PM you wrote: > > > Как можно сделать добавление пользователя при установке РПМ-пакета? > > > Насколько я понял ,это делается в секции %pre? > > > И как сделать так , чтобы в случае, если нужный пользователь уже > > > существует в системе, инсталляция не прерывалась с ошибкой, а корректно > > > обрабатывалась данная ситуация? > > > > > > В таком примере : > > > ----------------------------------------------------------- > > > %pre > > > /usr/sbin/groupadd -r -f mail &>/dev/null > > > /usr/sbin/useradd -r -n -d /dev/null -s /dev/null cyrus&>/dev/null > > > ---------------------------------------------------------- > > > если пользователь cyrus уже существует, rpm -i cyrus-imapd.rpm > > > вываливается с ошибкой, что такой пользователь уже существует. > > > > А так не сгодится? > > > > id %{name} > /dev/null 2>&1 > > if [ $? -eq 1 ]; then > > /usr/sbin/useradd -d %{_sysconfdir}/%{name} -r -s "" %{name} > > > /dev/null fi > > > > (взято из spec'а privoxy) > Спасибо! > Я сделал так ,как в спеке постфикса. > /usr/sbin/useradd -r -n -d /dev/null -s /dev/null cyrus&>/dev/null ||: > ^^^ -правда,что значит эта > комбинация,не нашел &> - перенаправить все потоки вывода в файл || - если команда завершилась неудачно, то будет выполнена команда, написанная справа от опретора "||". -- Юрий А. Зотов ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [mdk-re] Re: adduser в spec-файле 2002-04-16 9:19 ` [mdk-re] Re: adduser в spec-файле Yura Zotov @ 2002-04-16 9:27 ` vic ismakaev 0 siblings, 0 replies; 6+ messages in thread From: vic ismakaev @ 2002-04-16 9:27 UTC (permalink / raw) To: mandrake-russian > || - если команда завершилась неудачно, то будет выполнена > > команда, написанная справа от опретора "||". Понятно! Спасибо за разъяснение. -- С уважением Виктор В Исмакаев ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2002-04-16 9:27 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2002-04-15 19:19 [mdk-re] adduser в spec-файле vic ismakaev 2002-04-15 22:52 ` [mdk-re] " Konstantin Lepikhov 2002-04-16 6:32 ` vic ismakaev 2002-04-16 8:53 ` [mdk-re] Fetchmailrc & Spam Letter Tihonov Vladimir 2002-04-16 9:19 ` [mdk-re] Re: adduser в spec-файле Yura Zotov 2002-04-16 9:27 ` vic ismakaev
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git