GNU bug report logs - #75529
Support `nixos-rebuild --use-remote-sudo` in `comint-password-prompt-regexp`

Previous Next

Package: emacs;

Reported by: s.walinder <at> gmail.com

Date: Mon, 13 Jan 2025 00:45:02 UTC

Severity: normal

Tags: patch

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 75529 in the body.
You can then email your comments to 75529 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#75529; Package emacs. (Mon, 13 Jan 2025 00:45:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to s.walinder <at> gmail.com:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 13 Jan 2025 00:45:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: s.walinder <at> gmail.com
To: bug-gnu-emacs <at> gnu.org
Subject: Support `nixos-rebuild --use-remote-sudo` in
 `comint-password-prompt-regexp`
Date: Mon, 13 Jan 2025 01:44:20 +0100
[Message part 1 (text/plain, inline)]
Tags: patch

Hello!

In NixOS, when running the command `nixos-rebuild` with the argument `--use-remote-sudo`, the password is asked for with the prompt "bash Password:".

This adds support for this in `comint-password-prompt-regexp`.

I added a test also.

Thoughts?

In GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
3.24.43, cairo version 1.18.2)
Repository revision: e41a7d8127423307018f369e8739319f1de9b3fa
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12101014
System Description: NixOS 24.11 (Vicuna)

Configured using:
 'configure
 --prefix=/nix/store/wv2ap96hvr0ilf575mwszsva6rvgqdi1-emacs-git-20250107.0
 --disable-build-details --with-modules --with-x-toolkit=gtk3
 --with-cairo --with-xft --with-compress-install
 --with-toolkit-scroll-bars --with-native-compilation
 --without-imagemagick --with-mailutils --without-small-ja-dic
 --with-tree-sitter --with-xinput2 --without-xwidgets --with-dbus
 --with-selinux'

[0001-Added-nixos-rebuild-use-remote-sudo-password-prompt.patch (text/patch, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#75529; Package emacs. (Mon, 13 Jan 2025 01:54:02 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Sebastian <s.walinder <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: Support `nixos-rebuild --use-remote-sudo` in
 `comint-password-prompt-regexp`
Date: Mon, 13 Jan 2025 02:52:37 +0100
[Message part 1 (text/plain, inline)]
Actually, I might have misunderstood something here.

This patch seems to fail on M-x shell.

I will look into it further and confirm.

On Mon, Jan 13, 2025 at 1:44 AM <s.walinder <at> gmail.com> wrote:

> Tags: patch
>
> Hello!
>
> In NixOS, when running the command `nixos-rebuild` with the argument
> `--use-remote-sudo`, the password is asked for with the prompt "bash
> Password:".
>
> This adds support for this in `comint-password-prompt-regexp`.
>
> I added a test also.
>
> Thoughts?
>
> In GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
> 3.24.43, cairo version 1.18.2)
> Repository revision: e41a7d8127423307018f369e8739319f1de9b3fa
> Repository branch: master
> Windowing system distributor 'The X.Org Foundation', version 11.0.12101014
> System Description: NixOS 24.11 (Vicuna)
>
> Configured using:
>  'configure
>  --prefix=/nix/store/wv2ap96hvr0ilf575mwszsva6rvgqdi1-emacs-git-20250107.0
>  --disable-build-details --with-modules --with-x-toolkit=gtk3
>  --with-cairo --with-xft --with-compress-install
>  --with-toolkit-scroll-bars --with-native-compilation
>  --without-imagemagick --with-mailutils --without-small-ja-dic
>  --with-tree-sitter --with-xinput2 --without-xwidgets --with-dbus
>  --with-selinux'
>
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#75529; Package emacs. (Mon, 13 Jan 2025 02:00:02 GMT) Full text and rfc822 format available.

Message #11 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Sebastian <s.walinder <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: Support `nixos-rebuild --use-remote-sudo` in
 `comint-password-prompt-regexp`
Date: Mon, 13 Jan 2025 02:59:04 +0100
[Message part 1 (text/plain, inline)]
Yeah, this is wrong, my bad.

Please close this patch.

Thanks!

On Mon, Jan 13, 2025 at 2:52 AM Sebastian <s.walinder <at> gmail.com> wrote:

> Actually, I might have misunderstood something here.
>
> This patch seems to fail on M-x shell.
>
> I will look into it further and confirm.
>
> On Mon, Jan 13, 2025 at 1:44 AM <s.walinder <at> gmail.com> wrote:
>
>> Tags: patch
>>
>> Hello!
>>
>> In NixOS, when running the command `nixos-rebuild` with the argument
>> `--use-remote-sudo`, the password is asked for with the prompt "bash
>> Password:".
>>
>> This adds support for this in `comint-password-prompt-regexp`.
>>
>> I added a test also.
>>
>> Thoughts?
>>
>> In GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
>> 3.24.43, cairo version 1.18.2)
>> Repository revision: e41a7d8127423307018f369e8739319f1de9b3fa
>> Repository branch: master
>> Windowing system distributor 'The X.Org Foundation', version 11.0.12101014
>> System Description: NixOS 24.11 (Vicuna)
>>
>> Configured using:
>>  'configure
>>  --prefix=/nix/store/wv2ap96hvr0ilf575mwszsva6rvgqdi1-emacs-git-20250107.0
>>  --disable-build-details --with-modules --with-x-toolkit=gtk3
>>  --with-cairo --with-xft --with-compress-install
>>  --with-toolkit-scroll-bars --with-native-compilation
>>  --without-imagemagick --with-mailutils --without-small-ja-dic
>>  --with-tree-sitter --with-xinput2 --without-xwidgets --with-dbus
>>  --with-selinux'
>>
>>
[Message part 2 (text/html, inline)]

Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Mon, 13 Jan 2025 12:45:02 GMT) Full text and rfc822 format available.

Notification sent to s.walinder <at> gmail.com:
bug acknowledged by developer. (Mon, 13 Jan 2025 12:45:02 GMT) Full text and rfc822 format available.

Message #16 received at 75529-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Sebastian <s.walinder <at> gmail.com>
Cc: 75529-done <at> debbugs.gnu.org
Subject: Re: bug#75529: Support `nixos-rebuild --use-remote-sudo` in
 `comint-password-prompt-regexp`
Date: Mon, 13 Jan 2025 14:43:28 +0200
> From: Sebastian <s.walinder <at> gmail.com>
> Date: Mon, 13 Jan 2025 02:59:04 +0100
> 
> Yeah, this is wrong, my bad.
> 
> Please close this patch.

Done, thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#75529; Package emacs. (Mon, 13 Jan 2025 14:23:01 GMT) Full text and rfc822 format available.

Message #19 received at 75529 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: 75529 <at> debbugs.gnu.org
Cc: eliz <at> gnu.org, s.walinder <at> gmail.com
Subject: Re: bug#75529: Support `nixos-rebuild --use-remote-sudo` in
 `comint-password-prompt-regexp`
Date: Mon, 13 Jan 2025 15:21:52 +0100
Eli Zaretskii <eliz <at> gnu.org> writes:

Hi Eli,

>> Yeah, this is wrong, my bad.
>>
>> Please close this patch.
>
> Done, thanks.

Sebastian wrote "close this patch", not "close the bug".

Sebastian, if this is still a problem for you, pls send the output of
'nixos-rebuild --use-remote-sudo', including the password prompt.

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#75529; Package emacs. (Mon, 13 Jan 2025 14:36:01 GMT) Full text and rfc822 format available.

Message #22 received at 75529 <at> debbugs.gnu.org (full text, mbox):

From: Sebastian <s.walinder <at> gmail.com>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 75529 <at> debbugs.gnu.org, eliz <at> gnu.org
Subject: Re: bug#75529: Support `nixos-rebuild --use-remote-sudo` in
 `comint-password-prompt-regexp`
Date: Mon, 13 Jan 2025 15:35:07 +0100
[Message part 1 (text/plain, inline)]
Hi!

Thanks, but you can close the bug.

What doesn't work is for the command I mentioned to use auth-source for
escalation, but that's a different issue that I haven't researched yet.

On Mon, Jan 13, 2025, 15:21 Michael Albinus <michael.albinus <at> gmx.de> wrote:

> Eli Zaretskii <eliz <at> gnu.org> writes:
>
> Hi Eli,
>
> >> Yeah, this is wrong, my bad.
> >>
> >> Please close this patch.
> >
> > Done, thanks.
>
> Sebastian wrote "close this patch", not "close the bug".
>
> Sebastian, if this is still a problem for you, pls send the output of
> 'nixos-rebuild --use-remote-sudo', including the password prompt.
>
> Best regards, Michael.
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#75529; Package emacs. (Mon, 13 Jan 2025 14:41:01 GMT) Full text and rfc822 format available.

Message #25 received at 75529 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Sebastian <s.walinder <at> gmail.com>
Cc: 75529 <at> debbugs.gnu.org, eliz <at> gnu.org
Subject: Re: bug#75529: Support `nixos-rebuild --use-remote-sudo` in
 `comint-password-prompt-regexp`
Date: Mon, 13 Jan 2025 15:40:49 +0100
Sebastian <s.walinder <at> gmail.com> writes:

> Hi!

Hi Sebastian,

> Thanks, but you can close the bug.

OK. Eli did already.

> What doesn't work is for the command I mentioned to use auth-source
> for escalation, but that's a different issue that I haven't researched
> yet.

If there are further problems, you might ask at the <help-gnu-emacs <at> gnu.org>
mailing list. And if there is really a bug, you'll report it.

Best regards, Michael.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 11 Feb 2025 12:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 129 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.