[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: auth-source source password lookup for ssh + sudo
From: |
Kai Tetzlaff |
Subject: |
Re: auth-source source password lookup for ssh + sudo |
Date: |
Fri, 18 Feb 2022 14:31:13 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) |
Michael Albinus <michael.albinus@gmx.de> writes:
> Hi Kai,
>
>>> Btw, in your example I don't understand why you want to access the
>>> remote host as user "notroot", and afterwards to change the user on that
>>> host to "notroot", again.
>>
>> That's not what I want. The `sudo::` part *should* obtain `root`
>> privileges. However, the *password* which is required by sudo is the one
>> for the user of the first hop: `notroot`. So the password lookup should
>> be done for `notroot` instead of `root`.
>>
>> Its not just the password lookup in auth-source, the password prompt
>> shown by TRAMP (if the password lookup faile) is misleading, too:
>>
>> Password for /sudo:root@host.example.com:
>>
>> This looks like a request for the password of the root user. However,
>> the password to be entered is that of `notroot` (the user of the first
>> hop).
>
> 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.
> Best regards, Michael.
BR, Kai
- auth-source source password lookup for ssh + sudo, Kai Tetzlaff, 2022/02/17
- Re: auth-source source password lookup for ssh + sudo, Michael Albinus, 2022/02/18
- Re: auth-source source password lookup for ssh + sudo, Kai Tetzlaff, 2022/02/18
- Re: auth-source source password lookup for ssh + sudo, Michael Albinus, 2022/02/18
- Re: auth-source source password lookup for ssh + sudo, Kai Tetzlaff, 2022/02/18
- Re: auth-source source password lookup for ssh + sudo, Michael Albinus, 2022/02/18
- Re: auth-source source password lookup for ssh + sudo,
Kai Tetzlaff <=
- Re: auth-source source password lookup for ssh + sudo, Michael Albinus, 2022/02/18
- Re: auth-source source password lookup for ssh + sudo, Michael Albinus, 2022/02/18
- Re: auth-source source password lookup for ssh + sudo, Kai Tetzlaff, 2022/02/18
- Re: auth-source source password lookup for ssh + sudo, Michael Albinus, 2022/02/19
- Re: auth-source source password lookup for ssh + sudo, Kai Tetzlaff, 2022/02/19
- Re: auth-source source password lookup for ssh + sudo, Michael Albinus, 2022/02/19
- Re: auth-source source password lookup for ssh + sudo, Kai Tetzlaff, 2022/02/19
- Re: auth-source source password lookup for ssh + sudo, Michael Albinus, 2022/02/20
- Re: auth-source source password lookup for ssh + sudo, Kai Tetzlaff, 2022/02/20