unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: 63246@debbugs.gnu.org
Cc: manuel@ledu-giraud.fr
Subject: bug#63246: 30.0.50; TRAMP with doas multi-hops
Date: Wed, 03 May 2023 20:59:40 +0200	[thread overview]
Message-ID: <87pm7h9r6r.fsf@gmx.de> (raw)
In-Reply-To: <87wn1ppngc.fsf@ledu-giraud.fr> (Manuel Giraud via's message of "Wed, 03 May 2023 15:13:39 +0200")

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	other threads:[~2023-05-03 18:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-03 13:13 bug#63246: 30.0.50; TRAMP with doas multi-hops Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-05-03 18:59 ` Michael Albinus [this message]
2023-05-04  8:14   ` Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-05-04  8:27     ` Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-05-04 16:00       ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pm7h9r6r.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=63246@debbugs.gnu.org \
    --cc=manuel@ledu-giraud.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).