GNU bug report logs -
#64807
30.0.50; Editing files using sudo with fprintd hangs
Previous Next
Reported by: Theodor Thornhill <theo <at> thornhill.no>
Date: Sun, 23 Jul 2023 16:29:02 UTC
Severity: normal
Found in version 30.0.50
Done: Michael Albinus <michael.albinus <at> gmx.de>
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 64807 in the body.
You can then email your comments to 64807 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
michael.albinus <at> gmx.de, bug-gnu-emacs <at> gnu.org
:
bug#64807
; Package
emacs
.
(Sun, 23 Jul 2023 16:29:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Theodor Thornhill <theo <at> thornhill.no>
:
New bug report received and forwarded. Copy sent to
michael.albinus <at> gmx.de, bug-gnu-emacs <at> gnu.org
.
(Sun, 23 Jul 2023 16:29:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi Emacs (and Michael, forgive me if this isn't relevant for you)
I'm using Ubuntu on a thinkpad with fingerprint scanner, and have
enabled it to be used when sudo is invoked, setting it in pam.d. Fprintd
is the program (I believe) that checks the fingerprint.
To make the issue a little clearer, I'll show an example that works like
intended in Emacs, and the one that does not.
Both
This works:
1. M-x eshell
2. type "sudo ls" then RET
3. observe that eshell prompts:
"Place your finger on the fingerprint reader"
4. If fingerprint is wrong or you wait for some period (10 seconds I
believe) it falls back to normal.
See example prompt:
```
$ sudo ls
Place your finger on the fingerprint reader
Cargo.lock Cargo.toml src target
$ sudo ls
Place your finger on the fingerprint reader
Verification timed out
[sudo] password for theodor:
Cargo.lock Cargo.toml src target
```
This doesn't work as intended:
1. C-x C-f /sudo:Theodor:/ RET
2. Observe that Emacs appears to be hanging
- the cursor is now spinning, and "C-x o" and friends doesn't work
3. Scan fingerprint
- all is ok
4. Wait for timeout
- enter password
- all is ok
So to sum up - in the eshell case we get some indication to scan the
fingerprint, in the sudo/tramp case we don't. Everything works as it
should, in that verification passes, but the UI is confusing, and it
appears to hang for other commands. C-g works.
Is there some way for Emacs to prompt for the fingerprint to be scanned,
and not to freeze up?
Let me know if I need to provide more information :)
Thanks,
Theo
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#64807
; Package
emacs
.
(Sun, 23 Jul 2023 17:23:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 64807 <at> debbugs.gnu.org (full text, mbox):
Theodor Thornhill <theo <at> thornhill.no> writes:
> Hi Emacs (and Michael, forgive me if this isn't relevant for you)
Hi Theodor,
> I'm using Ubuntu on a thinkpad with fingerprint scanner, and have
> enabled it to be used when sudo is invoked, setting it in pam.d. Fprintd
> is the program (I believe) that checks the fingerprint.
>
> Is there some way for Emacs to prompt for the fingerprint to be scanned,
> and not to freeze up?
Tramp has support for 2FA security. Please add the fingerprint prompt to
the user option tramp-security-key-confirm-regexp. If there is a second
message, telling you that the security key (your finger :-) has been
confirmed, add this message to the user option
tramp-security-key-confirmed-regexp.
> Let me know if I need to provide more information :)
If it doesn't work, send me Tramp traces (tramp-verbose 6 shall be sufficient).
> Thanks,
> Theo
Best regards, Michael.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#64807
; Package
emacs
.
(Mon, 28 Aug 2023 11:01:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 64807 <at> debbugs.gnu.org (full text, mbox):
Michael Albinus <michael.albinus <at> gmx.de> writes:
Hi Theodor,
>> I'm using Ubuntu on a thinkpad with fingerprint scanner, and have
>> enabled it to be used when sudo is invoked, setting it in pam.d. Fprintd
>> is the program (I believe) that checks the fingerprint.
>>
>> Is there some way for Emacs to prompt for the fingerprint to be scanned,
>> and not to freeze up?
>
> Tramp has support for 2FA security. Please add the fingerprint prompt to
> the user option tramp-security-key-confirm-regexp. If there is a second
> message, telling you that the security key (your finger :-) has been
> confirmed, add this message to the user option
> tramp-security-key-confirmed-regexp.
I don't know whether this has worked for you. Could you pls tell?
And in case it works: Which message have you added to
tramp-security-key-confirm-regexp? Something I could add to Tramp proper?
>> Thanks,
>> Theo
Best regards, Michael.
Reply sent
to
Michael Albinus <michael.albinus <at> gmx.de>
:
You have taken responsibility.
(Sun, 17 Sep 2023 07:12:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Theodor Thornhill <theo <at> thornhill.no>
:
bug acknowledged by developer.
(Sun, 17 Sep 2023 07:12:01 GMT)
Full text and
rfc822 format available.
Message #16 received at 64807-done <at> debbugs.gnu.org (full text, mbox):
Michael Albinus <michael.albinus <at> gmx.de> writes:
Hi Theodor,
>>> I'm using Ubuntu on a thinkpad with fingerprint scanner, and have
>>> enabled it to be used when sudo is invoked, setting it in pam.d. Fprintd
>>> is the program (I believe) that checks the fingerprint.
>>>
>>> Is there some way for Emacs to prompt for the fingerprint to be scanned,
>>> and not to freeze up?
>>
>> Tramp has support for 2FA security. Please add the fingerprint prompt to
>> the user option tramp-security-key-confirm-regexp. If there is a second
>> message, telling you that the security key (your finger :-) has been
>> confirmed, add this message to the user option
>> tramp-security-key-confirmed-regexp.
>
> I don't know whether this has worked for you. Could you pls tell?
>
> And in case it works: Which message have you added to
> tramp-security-key-confirm-regexp? Something I could add to Tramp proper?
No further comment, so I'm assuming it works. Closing the bug.
Best regards, Michael.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#64807
; Package
emacs
.
(Sun, 17 Sep 2023 08:20:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 64807 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/html, inline)]
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 15 Oct 2023 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 208 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.