[Bug 2125507] Re: sudo --non-interactive is interactive

Marc Schoolderman 2125507 at bugs.launchpad.net
Wed Sep 24 09:50:24 UTC 2025


Note: this is related to the `noninteractive_auth` setting; with sudo-rs
this is implied to be "on" (and non-configurable). In a sense it is
doing the same as sudo 1.9.9 (and sudo 1.9.10 and later with that flag
turned on).

See for example a similar discussion for ogsudo at
https://github.com/sudo-project/sudo/issues/236

There is no universal way to tell PAM modules to not do interaction.

Upstream issue: https://github.com/trifectatechfoundation/sudo-
rs/issues/1278

** Bug watch added: github.com/sudo-project/sudo/issues #236
   https://github.com/sudo-project/sudo/issues/236

** Bug watch added: github.com/trifectatechfoundation/sudo-rs/issues #1278
   https://github.com/trifectatechfoundation/sudo-rs/issues/1278

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to rust-sudo-rs in Ubuntu.
https://bugs.launchpad.net/bugs/2125507

Title:
  sudo --non-interactive is interactive

Status in rust-sudo-rs package in Ubuntu:
  New

Bug description:
  The --non-interactive flag does not work, it will try to do PAM auth,
  which then blocks because my PAM is configured to do FIDO2:

  jak at jak-t14-g3 ~/P/U/rust-coreutils-0.2.2 (ubuntu/devel)> sudo --non-interactive echo x
  [sudo] Please touch the FIDO authenticator.
  x
  jak at jak-t14-g3 ~/P/U/rust-coreutils-0.2.2 (ubuntu/devel)> sudo.ws --non-interactive echo x
  sudo: a password is required

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rust-sudo-rs/+bug/2125507/+subscriptions




More information about the foundations-bugs mailing list