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:
signature.asc
Description: PGP signature