tramp-devel
[Top][All Lists]
Advanced

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

Re: auth-source source password lookup for ssh + sudo


From: Michael Albinus
Subject: Re: auth-source source password lookup for ssh + sudo
Date: Fri, 18 Feb 2022 16:31:53 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Michael Albinus <michael.albinus@gmx.de> writes:

Hi Kai,

>>> I see. It is not a problem of multi-hop per se, but a general problem of
>>> su(do) password prompts in Tramp. Will see what I could do.
>>
>> Ok, yes - but it's only a problem of the `sudo` method. For `su` the
>> current behaviour is correct.
>
> And perhaps 'doas' on *BSD? Don't know.

Finally, I believe we must support Tramp methods 'sudo', 'sudoedit' and
'doas'. I've prepared a patch (appended), could you pls check? The main
idea is, that for these methods the password of the previous hop is
reused. In case there is no "previous" hop, Tramp assumes a virtual one,
in order not to mix with the root password.

The patch is not polished yet, but I'd like to know whether it works in
general outside my laptop.

>> BR, Kai

Thanks, and best regards, Michael.

Attachment: txtMhKfZctVBs.txt
Description: Text Data


reply via email to

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