Subject: Re: bug#59015: 28.2; tramp asking for root password instead user password
From: Michael Albinus <[email-masked]>
To: "C. Conrad" <[email-masked]>
Cc: [email-masked]
Date: Fri, 04 Nov 2022 15:12:59 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Version: 29.1

"C. Conrad" <[email-masked]> writes:

Hi,

> => System info below.
>
> Sudoing with tramp
>
> (defun vserver-edit-root()
>   (interactive)
>   (find-file "/ssh:[email-masked]#2345|sudo:92.14.61.91:/"))
>
> asks me for the password of the "root" user, but i have to enter the
> pw
> for "user". "user" is in "sudo" group.
>
> Aside from the wrong string shown as prompt, everything works fine.

Thanks for the report.

This is fixed already in Tramp 2.6, which will be part of Emacs 29. The
first standalone release, 2.6.0, is planned for the end of this year,
and it is also planned to distribute it via GNU ELPA.

Closing the bug.

Best regards, Michael.