Skip to main content
added 50 characters in body
Source Link
neri
  • 43
  • 3

Having recently got a device that has a fingerprint reader built in, I set to enabling fingerprint authentication. I have this is sudo now, and this is useful in my terminal.

The issue I'm running into is that when I use emacs tramp to elevate privileges, it calls sudo and waits for the fingerprint to be read (this does work, it just doesn't prompt anything). Where in a terminal I can Ctrl+C to go to password auth if I feel like it (all I did to /etc/pam.d/sudo is add auth sufficient pam_fprintd.so to the top), I can't here as with tramp that is nicely abstracted. I would prefer to just disable fingerprint auth for tramp, but keep it in normal sudo. Is this possible?

I've looked things up and the only thing that spoke to me as a possible solution is using a different privilege escalator, such as su or run0, but those require the root password, which I have disabled. I could theoretically use doas, but it feels weird installing a whole separate stack that I'll barely use...

Any help is appreciated

Having recently got a device that has a fingerprint reader built in, I set to enabling fingerprint authentication. I have this is sudo now, and this is useful in my terminal.

The issue I'm running into is that when I use emacs tramp to elevate privileges, it calls sudo and waits for the fingerprint to be read. Where in a terminal I can Ctrl+C to go to password auth if I feel like it (all I did to /etc/pam.d/sudo is add auth sufficient pam_fprintd.so to the top), I can't here as with tramp that is nicely abstracted. I would prefer to just disable fingerprint auth for tramp, but keep it in normal sudo. Is this possible?

I've looked things up and the only thing that spoke to me as a possible solution is using a different privilege escalator, such as su or run0, but those require the root password, which I have disabled. I could theoretically use doas, but it feels weird installing a whole separate stack that I'll barely use...

Any help is appreciated

Having recently got a device that has a fingerprint reader built in, I set to enabling fingerprint authentication. I have this is sudo now, and this is useful in my terminal.

The issue I'm running into is that when I use emacs tramp to elevate privileges, it calls sudo and waits for the fingerprint to be read (this does work, it just doesn't prompt anything). Where in a terminal I can Ctrl+C to go to password auth if I feel like it (all I did to /etc/pam.d/sudo is add auth sufficient pam_fprintd.so to the top), I can't here as with tramp that is nicely abstracted. I would prefer to just disable fingerprint auth for tramp, but keep it in normal sudo. Is this possible?

I've looked things up and the only thing that spoke to me as a possible solution is using a different privilege escalator, such as su or run0, but those require the root password, which I have disabled. I could theoretically use doas, but it feels weird installing a whole separate stack that I'll barely use...

Any help is appreciated

added 7 characters in body
Source Link
neri
  • 43
  • 3

Having recently got a device that has a fingerprint reader built in, I set to enabling fingerprint authentication. I have this is sudo now, and this is useful in my terminal.

The issue I'm running into is that when I use emacs tramp to elevate privileges, it calls sudo and waits for the fingerprint to be read. Where in a terminal I can Ctrl+C to go to password auth if I feel like it (all I did to /etc/pam.d/sudo is add auth sufficient pam_fprintd.so to the top), I can't here as with tramp that is nicely abstracted. I would prefer to just disable fingerprint auth for tramp, but keep it in normal sudo. Is this possible?

I've looked things up and the only thing that spoke to me as a possible solution is using a different privilege escalator, such as su or run0, but those require the root password, which I have disabled. I could theoretically use doas, but it feels weird installing a whole separate stack that I'll barely use...

Any help is appreciated

Having recently got a device that has a fingerprint reader built in, I set to enabling fingerprint authentication. I have this is sudo now, and this is useful in my terminal.

The issue I'm running into is that when I use emacs tramp to elevate privileges, it calls sudo and waits for the fingerprint to be read. Where in a terminal I can Ctrl+C to go to password auth if I feel like it (all I did to /etc/pam.d/sudo is add auth sufficient pam_fprintd.so to the top), I can't here as with tramp that is nicely abstracted. I would prefer to just disable fingerprint auth for tramp, but keep it in sudo. Is this possible?

I've looked things up and the only thing that spoke to me as a possible solution is using a different privilege escalator, such as su or run0, but those require the root password, which I have disabled. I could theoretically use doas, but it feels weird installing a whole separate stack that I'll barely use...

Any help is appreciated

Having recently got a device that has a fingerprint reader built in, I set to enabling fingerprint authentication. I have this is sudo now, and this is useful in my terminal.

The issue I'm running into is that when I use emacs tramp to elevate privileges, it calls sudo and waits for the fingerprint to be read. Where in a terminal I can Ctrl+C to go to password auth if I feel like it (all I did to /etc/pam.d/sudo is add auth sufficient pam_fprintd.so to the top), I can't here as with tramp that is nicely abstracted. I would prefer to just disable fingerprint auth for tramp, but keep it in normal sudo. Is this possible?

I've looked things up and the only thing that spoke to me as a possible solution is using a different privilege escalator, such as su or run0, but those require the root password, which I have disabled. I could theoretically use doas, but it feels weird installing a whole separate stack that I'll barely use...

Any help is appreciated

Source Link
neri
  • 43
  • 3

Circumvent sudo fingerprint in tramp

Having recently got a device that has a fingerprint reader built in, I set to enabling fingerprint authentication. I have this is sudo now, and this is useful in my terminal.

The issue I'm running into is that when I use emacs tramp to elevate privileges, it calls sudo and waits for the fingerprint to be read. Where in a terminal I can Ctrl+C to go to password auth if I feel like it (all I did to /etc/pam.d/sudo is add auth sufficient pam_fprintd.so to the top), I can't here as with tramp that is nicely abstracted. I would prefer to just disable fingerprint auth for tramp, but keep it in sudo. Is this possible?

I've looked things up and the only thing that spoke to me as a possible solution is using a different privilege escalator, such as su or run0, but those require the root password, which I have disabled. I could theoretically use doas, but it feels weird installing a whole separate stack that I'll barely use...

Any help is appreciated