[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

auth-source source password lookup for ssh + sudo

From: Kai Tetzlaff
Subject: auth-source source password lookup for ssh + sudo
Date: Fri, 18 Feb 2022 01:50:27 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux)

Hi Michael,

with auth-source enabled when SSHing to a server with sudo as 2nd hop
like `|sudo:/etc/passwd` TRAMP apparently tries
to look up the sudo password using `user=root,,
port=sudo` (at least that is what auth-source-pass tells me with
debugging enabled [1]). Now, why does the lookup use `user=root` instead of
`user=notroot`. Is there a way to change that?

The reason I'm stumbled upon this is that I have multiple accounts on
some hosts and with the current lookup scheme it is not possible to
store sudo passwords for more than one account per host.


[1] The actual debug output is:

auth-source-pass: searching for entries matching hostname="", 
user=#("root" 0 4 (tramp-default t)), port="sudo"

reply via email to

[Prev in Thread] Current Thread [Next in Thread]