From: "Dmitry V. Levin" <ldv@altlinux.org>
To: util-linux@vger.kernel.org
Subject: Re: Debian´s change of "su" to the one in util-linux
Date: Sun, 5 Aug 2018 13:43:11 +0300 [thread overview]
Message-ID: <20180805104311.GC11394@altlinux.org> (raw)
In-Reply-To: <1734536.DseMWcvaqb@merkaba>
[-- Attachment #1: Type: text/plain, Size: 625 bytes --]
On Sun, Aug 05, 2018 at 10:35:34AM +0200, Martin Steigerwald wrote:
[...]
> And then: How to implement a backup script that needs root access for
> most operations, but also requires access to SSH agent from a user
> setup? Dig out the environment variables of the SSH agent myself?
If all you need from the ssh agent is the socket, then just symlink it
to a fixed location trusted both by you and by root, then you can override
$SSH_AUTH_SOCK to the new location, e.g.
if [ -S "$SSH_AUTH_SOCK" ]; then
ln -snf "$SSH_AUTH_SOCK" fixed_trusted_location
SSH_AUTH_SOCK=fixed_trusted_location
fi
--
ldv
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
next prev parent reply other threads:[~2018-08-05 12:47 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-05 8:35 Debian´s change of "su" to the one in util-linux Martin Steigerwald
2018-08-05 10:43 ` Dmitry V. Levin [this message]
2018-08-05 15:05 ` Theodore Y. Ts'o
2018-08-06 8:24 ` Martin Steigerwald
2018-08-06 13:21 ` Theodore Y. Ts'o
2018-08-06 14:43 ` Karel Zak
2018-08-06 15:56 ` Bernhard Voelker
2018-08-06 6:47 ` Karel Zak
2018-08-06 8:33 ` Martin Steigerwald
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=20180805104311.GC11394@altlinux.org \
--to=ldv@altlinux.org \
--cc=util-linux@vger.kernel.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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox