[Bug 2125507] Re: sudo --non-interactive is interactive
Marc Schoolderman
2125507 at bugs.launchpad.net
Tue Sep 23 16:53:56 UTC 2025
No need to put effort in producing an strace. :) Both sudo
implementations do have to consult PAM even in non-interactive mode. You
can see this e.g. by setting variables in /etc/security/pam_env.conf.
--
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