From: "Alexey V. Lubimov" <avl@l14.ru>
To: devel@altlinux.ru
Subject: Re: [devel] Q: sudo and %homedir macro
Date: Mon, 17 Feb 2003 15:57:35 +0300
Message-ID: <20030217155735.21e21a0b.avl@l14.ru> (raw)
In-Reply-To: <20030217091941.GA6629@basalt.office.altlinux.org>
On Mon, 17 Feb 2003 12:19:41 +0300
"Dmitry V. Levin" <ldv@altlinux.org> wrote:
> On Mon, Feb 17, 2003 at 12:34:15PM +1200, Anton V. Denisov wrote:
> > Приветствую всех.
> >
> > При вызове rpm через sudo считывается пользовательский ~/.rpmmacros, но
> > макрос %homedir принимает значение /root, что иногда приводит к
> > неожиданным результатам (примеры в моих прошлых письмах по этой теме). Мне
> > кажется такое поведение rpm неправильным. Ведь $ sudo echo $HOME выдаёт
> > /home/user, но никак не /root.
>
> Коротко повторю ответ на этот вопрос:
> use "sudo -H".
По моему, вопрос был в том, почему при том, что $HOME=/home/user макрос %homedir принимает значение /root
То, что опцией -H $HOME можно тоже заставить показывать на /root, понятно и даже, возможно, выход, но не совсем в тему вопроса.
--
С уважением, Алексей Любимов avl@cad.ru
next prev parent reply other threads:[~2003-02-17 12:57 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-17 0:34 Anton V. Denisov
2003-02-17 9:19 ` Dmitry V. Levin
2003-02-17 12:57 ` Alexey V. Lubimov [this message]
2003-02-17 13:02 ` Dmitry V. Levin
2003-02-17 13:44 ` Alexey V. Lubimov
2003-02-17 13:47 ` Dmitry V. Levin
2003-02-17 14:32 ` JT " Вячеслав Диконов
2003-02-17 15:26 ` AntonFarygin
2003-02-17 15:16 ` Вячеслав Диконов
2003-02-17 17:01 ` AntonFarygin
2003-02-17 18:39 ` Вячеслав Диконов
2003-02-19 8:59 ` rider
2003-02-19 14:09 ` Victor Forsyuk
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=20030217155735.21e21a0b.avl@l14.ru \
--to=avl@l14.ru \
--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