bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#63246: 30.0.50; TRAMP with doas multi-hops


From: Michael Albinus
Subject: bug#63246: 30.0.50; TRAMP with doas multi-hops
Date: Wed, 03 May 2023 20:59:40 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Manuel Giraud via "Bug reports for GNU Emacs, the Swiss army knife of
text editors" <bug-gnu-emacs@gnu.org> writes:

> Hi,

Hi Manuel,

> I have a bug when trying to access a remote ssh host and then doas on
> it.  Here is the recipe starting from 'emacs -Q':
>
>      C-x C-f /ssh:host|doas::
>      ;; Enter wrong doas password (ssh authentication is done with a
>      ;; key)
>
> Here, I get a connection error because the doas authentication failed.
> With another linux host and with sudo, Emacs re-ask for the password if
> I entered a wrong one.

The difference is between the sudo and doas programs. sudo does the
following:

--8<---------------cut here---------------start------------->8---
# sudo command
[sudo] password for albinus:
Sorry, try again.
[sudo] password for albinus:
--8<---------------cut here---------------end--------------->8---

And doas does:

--8<---------------cut here---------------start------------->8---
# doas command
doas (albinus@gandalf) password:
doas: Authentication failed
#
--8<---------------cut here---------------end--------------->8---

While sudo asks to reenter the password, doas simply gives up after the
first error. This is what you see in Tramp.

Well, there is a doas issue in its bug tracker to change this behaviour:
<https://github.com/Duncaen/OpenDoas/pull/102>. Once this has arrived
our systems, doas (in Tramp) shall be have like sudo wrt reentering a
wrong password.

I guess we can close this (Tramp) bug.

> Best regards,

Best regards, Michael.





reply via email to

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