sudo-rs icon indicating copy to clipboard operation
sudo-rs copied to clipboard

Add support for `-A` (askpass) commandline switch

Open allisonkarlitskaya opened this issue 2 months ago • 27 comments
trafficstars

hi,

Cockpit uses sudo to gain root privileges for users performing actions via the web interface. We definitely need askpass support: we forward the prompt to the user, asking for the password, and passing it back. We can't do that with a pseudoterminal forwarded to the user because we also support caching the login password and using that.

See https://github.com/cockpit-project/cockpit/issues/22305 for the original report on our side.

Thanks!

Originally posted by @allisonkarlitskaya in #129

allisonkarlitskaya avatar Aug 25 '25 08:08 allisonkarlitskaya